map().setEmployerName(source.getEmployer());
map().setSurName("jones");
}
}));
PropertyMapping employer = (PropertyMapping) mappings.get("setEmployerName");
ConstantMapping surName = (ConstantMapping) mappings.get("setSurName");
assertEquals(employer.getLastSourceProperty().getMember().getName(), "getEmployer");
assertEquals(employer.getLastDestinationProperty().getMember().getName(), "setEmployerName");
assertEquals(surName.getConstant(), "jones");
assertEquals(surName.getLastDestinationProperty().getMember().getName(), "setSurName");
}