@Test
public void testGetExpressionSummary() throws Exception {

    String value1 = "8 15 10 25 3 ? 2005";
    String expectedSummary1 = "seconds: 8" + "\n" +
            "minutes: 15" + "\n" +
            "hours: 10" + "\n" +
            "daysOfMonth: 25" + "\n" +
            "months: 3" + "\n" +
            "daysOfWeek: ?" + "\n" +
            "lastdayOfWeek: false" + "\n" +
            "nearestWeekday: false" + "\n" +
            "NthDayOfWeek: 0" + "\n" +
            "lastdayOfMonth: false" + "\n" +
            "years: 2005" + "\n";
    assertEquals(expectedSummary1, new CronExpression(value1).getExpressionSummary());
    String value2 = "5 10 20 ? * MON,WED 2015";
    String expectedSummary2 = "seconds: 5" + "\n" +
            "minutes: 10" + "\n" +
            "hours: 20" + "\n" +
            "daysOfMonth: ?" + "\n" +
            "months: *" + "\n" +
            "daysOfWeek: 2,4" + "\n" +
            "lastdayOfWeek: false" + "\n" +
            "nearestWeekday: false" + "\n" +
            "NthDayOfWeek: 0" + "\n" +
            "lastdayOfMonth: false" + "\n" +
            "years: 2015" + "\n";
    assertEquals(expectedSummary2, new CronExpression(value2).getExpressionSummary());
}