Source:
<code>public void testCreate(){ List<ProjectProperty> projectProperties = new ArrayList<>(); final String standardVariableProp = "8007"; final String variableTypeProp = VariableType.TRAIT.getName(); final String studyInformationProp = "STUDY Info Type"; final String variableDescriptionProp = "STUDY Info Type Description"; final String multiFactorialInformationProp = "Multi Factorial Info"; projectProperties.add(this.createProjectProperty(1, 2, TermId.STANDARD_VARIABLE.getId(), standardVariableProp)); projectProperties.add(this.createProjectProperty(2, 2, TermId.STUDY_INFORMATION.getId(), studyInformationProp)); projectProperties.add(this.createProjectProperty(3, 2, TermId.VARIABLE_DESCRIPTION.getId(), variableDescriptionProp)); projectProperties.add(this.createProjectProperty(4, 2, VariableType.TRAIT.getId(), variableTypeProp)); projectProperties.add(this.createProjectProperty(5, 2, TermId.MULTIFACTORIAL_INFO.getId(), multiFactorialInformationProp)); Set<VariableInfo> variableInfoSet = variableInfoBuilder.create(projectProperties); <START> Assert.assertEquals(1, variableInfoSet.size()); <END> if(variableInfoSet.size() > 0){ VariableInfo variableInfo = variableInfoSet.iterator().next(); Assert.assertEquals(variableInfo.getLocalName(), studyInformationProp); Assert.assertEquals(variableInfo.getLocalDescription(), variableDescriptionProp); Assert.assertEquals(variableInfo.getTreatmentLabel(), multiFactorialInformationProp); Assert.assertEquals(variableInfo.getVariableType().getName(), variableTypeProp); } }</code><technical_language>Please put in a message wrong incase do get desired result</technical_language>

Target:
public void testCreate(){ List<ProjectProperty> projectProperties = new ArrayList<>(); final String standardVariableProp = "8007"; final String variableTypeProp = VariableType.TRAIT.getName(); final String studyInformationProp = "STUDY Info Type"; final String variableDescriptionProp = "STUDY Info Type Description"; final String multiFactorialInformationProp = "Multi Factorial Info"; projectProperties.add(this.createProjectProperty(1, 2, TermId.STANDARD_VARIABLE.getId(), standardVariableProp)); projectProperties.add(this.createProjectProperty(2, 2, TermId.STUDY_INFORMATION.getId(), studyInformationProp)); projectProperties.add(this.createProjectProperty(3, 2, TermId.VARIABLE_DESCRIPTION.getId(), variableDescriptionProp)); projectProperties.add(this.createProjectProperty(4, 2, VariableType.TRAIT.getId(), variableTypeProp)); projectProperties.add(this.createProjectProperty(5, 2, TermId.MULTIFACTORIAL_INFO.getId(), multiFactorialInformationProp)); Set<VariableInfo> variableInfoSet = variableInfoBuilder.create(projectProperties); String message = "The %s for VariableInfo was not mapped correctly."; Assert.assertEquals(1, variableInfoSet.size()); VariableInfo variableInfo = variableInfoSet.iterator().next(); Assert.assertEquals(String.format(message, "Local Name"), studyInformationProp, variableInfo.getLocalName()); Assert.assertEquals(String.format(message, "Local Description"), variableDescriptionProp, variableInfo.getLocalDescription()); Assert.assertEquals(String.format(message, "Treatment Label"), multiFactorialInformationProp, variableInfo.getTreatmentLabel()); Assert.assertEquals(String.format(message, "Variable Type Name"), variableTypeProp, variableInfo.getVariableType().getName()); }