@Test
  public void test2() {

    String[] timeFormats = {//
    "2008-05-21 00:45:46",//
        "2008-05-21 00:46",//
        "2008-05-21 01",//
        "2008-05-22",//
        "2008-05-21T00:45:46",//
        "2008-05-21T00:46",//
        "2008-05-21T01",//
    };

    for (String timeFormat : timeFormats) {
      TimestampEqualsRule rule = (TimestampEqualsRule) TimestampEqualsRule.getRule(timeFormat);
      LogData event = createLogData();
      AssertJUnit.assertFalse(String.format("Wrong result for time format %s", timeFormat), rule.evaluate(event, null));
    }

  }
Tests evaluate when levels are not equal.
olv-core/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/TimestampEqualsRuleTest.java