return (ModelA) service.performTransformation(getModelBDescription(), getModelADescription(), model);
}
@Test
public void testIfTransformationDescriptionsBuiltCorrectly_shouldWork() throws Exception {
TransformationDescription desc1 = getDescriptionForModelAToModelB();
desc1.setId("aTob");
desc1.forwardField("bla", "blub");
TransformationDescription desc2 = getDescriptionForModelBToModelA();
desc2.setId("bToa");
assertThat(desc1.getId(), is("aTob"));
assertThat(desc1.getTransformingSteps().size(), is(1));
assertThat(desc2.getId(), is("bToa"));
assertThat(desc2.getSourceModel(), is(getModelBDescription()));
assertThat(desc2.getTargetModel(), is(getModelADescription()));
}