private Transformation createTransformation(String aFrom, String aTo,
DOMSource aSource, DOMSource aTarget) {
Transformation transformation = mock(Transformation.class);
- when(transformation.getId())
- .thenReturn(new Id<Transformation>("trans"));
+ when(transformation.getId()).thenReturn(
+ new Id<Transformation>(UUID.randomUUID().toString()));
when(transformation.getFromType()).thenReturn(aFrom);
when(transformation.getToType()).thenReturn(aTo);
when(transformation.transform(same(aSource))).thenReturn(aTarget);