DocumentType type1 = mock(DocumentType.class);
when(type1.getId()).thenReturn(new Id<DocumentType>("type1"));
DocumentType type2 = mock(DocumentType.class);
- when(type1.getId()).thenReturn(new Id<DocumentType>("type2"));
+ when(type2.getId()).thenReturn(new Id<DocumentType>("type2"));
config.documentTypeConfig().add(type1);
config.documentTypeConfig().add(type2);
Transformation transformation1 = mock(Transformation.class);
when(transformation1.getId()).thenReturn(new Id<Transformation>("t1"));
Transformation transformation2 = mock(Transformation.class);
- when(transformation1.getId()).thenReturn(new Id<Transformation>("t2"));
+ when(transformation2.getId()).thenReturn(new Id<Transformation>("t2"));
config.transformationConfig().add(transformation1);
Filter filter1 = mock(Filter.class);
when(filter1.getId()).thenReturn(new Id<Filter>("f1"));
Filter filter2 = mock(Filter.class);
- when(filter1.getId()).thenReturn(new Id<Filter>("f2"));
+ when(filter2.getId()).thenReturn(new Id<Filter>("f2"));
config.filterConfig().add(filter1);