@Test
public void predResultLabelMapException() {

    HashSet<Object> set = new HashSet <>();
    set.add("0");
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("The distinct label number less than 2!");
    ClassificationEvaluationUtil.buildLabelIndexLabelArray(set, true, null, Types.INT);
}