@Test
public void testGroupWithBadInput() {

    List<SugiliteTextParentAnnotator.AnnotatingResult> res = annotator.annotate
            ("Today is February 15 2018  Tomorrow is 2/16/2018. I'll blow up the world on Feb 32, 2018 " +
                    "and fly back to mars on 13/31/2018");
    assertEquals(res.size(), 2);
    res.sort((a, b) -> Double.compare(a.getNumericValue(), b.getNumericValue()));
    Calendar cal = new GregorianCalendar();
    cal.set(2018, 1, 15, 0, 0, 0);
    assertEquals(res.get(0).getNumericValue().longValue()/1000, cal.getTime().getTime()/1000);
    cal.set(2018, 1, 16, 0, 0, 0);
    assertEquals(res.get(1).getNumericValue().longValue()/1000, cal.getTime().getTime()/1000);
}