public void testHasIndicatorValuesProblem() { String problem = ProblemConstants.NO_CLASS_INDICATOR_FOR_INCLUDED_CLASS; SimpleContactProject project = new SimpleContactProject(); MWVariableOneToOneMapping mapping = (MWVariableOneToOneMapping) project.getPersonImplDescriptor().mappingNamed("contact"); assertTrue( "The mapping should not have the problem: " + problem, !hasProblem(problem, mapping)); Iterator values = mapping.getClassIndicatorPolicy().classIndicatorValues(); while (values.hasNext()) { MWClassIndicatorValue value = (MWClassIndicatorValue) values.next(); value.setIndicatorValue(null); } assertTrue("The mapping should have the problem: " + problem, hasProblem(problem, mapping)); }