### Question:
ComplexityThresholdsUtils { public static String buildComplexityDistributionMeasureValue(List<ComplexityThreshold> complexityThresholds) { String complexityDistributionMeasureValue = ""; for (Iterator<ComplexityThreshold> it = complexityThresholds.iterator(); it.hasNext();) { ComplexityThreshold complexityThreshold = it.next(); complexityDistributionMeasureValue += (complexityThreshold.getComplexityName() + EQUALITY_SEPARATOR + complexityThreshold.getCounter()); if (it.hasNext()) { complexityDistributionMeasureValue += ";"; } } return complexityDistributionMeasureValue; }  static List<ComplexityThreshold> convertAbacusThresholdsToComplexityThresholds(String[] propertyThresholds); static String convertCyclomaticComplexityToAbacusComplexity(Double cyclomaticComplexity, List<ComplexityThreshold> complexityThresholds); static void initCounterThreshold(List<ComplexityThreshold> complexityThresholds); static String buildComplexityDistributionMeasureValue(List<ComplexityThreshold> complexityThresholds);  }### Answer:
@Test public void testBuildComplexityDistributionMeasureValue() { ComplexityThreshold complexityThreshold; List<ComplexityThreshold> complexityThresholds = new ArrayList<ComplexityThreshold>(); complexityThreshold = new ComplexityThreshold("Simple", 10.0); complexityThreshold.incrementCounter(1); complexityThresholds.add(complexityThreshold); complexityThreshold = new ComplexityThreshold("Medium", 30.0); complexityThreshold.incrementCounter(2); complexityThresholds.add(complexityThreshold); complexityThreshold = new ComplexityThreshold("Complex", 60.0); complexityThreshold.incrementCounter(3); complexityThresholds.add(complexityThreshold); complexityThreshold = new ComplexityThreshold("Very complex", null); complexityThreshold.incrementCounter(4); complexityThresholds.add(complexityThreshold); Assert.assertEquals("Simple=1;Medium=2;Complex=3;Very complex=4", ComplexityThresholdsUtils.buildComplexityDistributionMeasureValue(complexityThresholds)); }