when(CONDITION).skip().setEmployerName(null);
when(CONDITION).map().setSurName("smith");
}
}));
ConstantMapping employer = (ConstantMapping) mappings.get("setEmployerName");
assertEquals(employer.getCondition(), CONDITION);
assertTrue(employer.isSkipped());
assertEquals(employer.getConstant(), null);
ConstantMapping surName = (ConstantMapping) mappings.get("setSurName");
assertEquals(surName.getCondition(), CONDITION);
assertFalse(surName.isSkipped());
assertEquals(surName.getConstant(), "smith");
}