@Test
public void calendarAbsoluteTest() {

    TriggerAction ta = new TriggerAction("tenant", "plugin", "action",
            new TimeConstraint("2016.01.26,20:30","2016.01.26,20:45", false));
    Calendar eventCal = Calendar.getInstance();
    eventCal.set(2016, Calendar.JANUARY, 26, 20, 31);
    Alert alert = new Alert();
    alert.setCtime(eventCal.getTimeInMillis());
    assertTrue(ActionsValidator.validate(ta, alert));
    eventCal.set(2016, Calendar.JANUARY, 26, 20, 46);
    alert.setCtime(eventCal.getTimeInMillis());
    assertFalse(ActionsValidator.validate(ta, alert));
    eventCal.set(2016, Calendar.JANUARY, 26, 20, 29);
    alert.setCtime(eventCal.getTimeInMillis());
    assertFalse(ActionsValidator.validate(ta, alert));
    eventCal.set(2015, Calendar.JANUARY, 26, 20, 29);
    alert.setCtime(eventCal.getTimeInMillis());
    assertFalse(ActionsValidator.validate(ta, alert));
}