public void testMappingAndVariableDontUseIndirectionProblem() { String problem = ProblemConstants.MAPPING_VALUE_HOLDER_ATTRIBUTE_WITHOUT_VALUE_HOLDER_INDIRECTION; SimpleContactProject project = new SimpleContactProject(); MWVariableOneToOneMapping mapping = (MWVariableOneToOneMapping) project.getPersonImplDescriptor().mappingNamed("contact"); assertTrue( "The mapping should not have the problem: " + problem, !hasProblem(problem, mapping)); mapping.getInstanceVariable().setType(project.getProject().typeFor(ValueHolderInterface.class)); assertTrue("The mapping should have the problem: " + problem, hasProblem(problem, mapping)); }