  @Test
  public void testConvertAbacusThresholdsToComplexityThresholds() {


    List<ComplexityThreshold> complexityThresholds;

    complexityThresholds = ComplexityThresholdsUtils.convertAbacusThresholdsToComplexityThresholds(new String[] {"Simple"});
    Assert.assertNotNull(complexityThresholds);
    Assert.assertEquals(complexityThresholds.size(), 1);
    Assert.assertEquals(complexityThresholds.get(0).getComplexityName(), "Simple");
    Assert.assertEquals(complexityThresholds.get(0).getThreshold(), null);

    complexityThresholds = ComplexityThresholdsUtils.convertAbacusThresholdsToComplexityThresholds(new String[] {"Simple:10", "Complex"});
    Assert.assertNotNull(complexityThresholds);
    Assert.assertEquals(complexityThresholds.size(), 2);
    Assert.assertEquals(complexityThresholds.get(0).getComplexityName(), "Simple");
    Assert.assertEquals(complexityThresholds.get(0).getThreshold(), Double.valueOf(10.0));
    Assert.assertEquals(complexityThresholds.get(1).getComplexityName(), "Complex");
    Assert.assertEquals(complexityThresholds.get(1).getThreshold(), null);

  }