assertThat(result.get("idA").size(), is(1));
}
@Test
public void testIfComplexPropertyConnectionWorksWithTemporaryFields_shouldWork() throws Exception {
TransformationDescription description =
new TransformationDescription(getModelADescription(), getModelBDescription());
description.forwardField("idA", "#id");
description.forwardField("#id", "#id+");
description.forwardField("blubA", "#blub");
description.concatField("#test", "#", "#id+", "#blub", "blaA");
description.forwardField("#test", "testB");
description.mapField("idA", "idB", new HashMap<String, String>());
description.valueField("blubB", "42");
description.concatField("blubB", ".", "testA", "#blub");
Map<String, Set<String>> result = calculator.getPropertyConnections(description);
assertThat(result.get("idA").contains("idB"), is(true));
assertThat(result.get("idA").contains("testB"), is(true));
assertThat(result.get("idA").size(), is(2));
assertThat(result.get("testA").contains("blubB"), is(true));