@Test
    public void test4() {
	Stack<Object> stack = new Stack<>();
	stack.push(LevelEqualsRule.getRule("INFO"));
	stack.push(TimestampInequalityRule.getRule(">=", "2008-05-21 00:44:45"));
	Rule rule = AndRule.getRule(stack);
	AssertJUnit.assertEquals(0, stack.size());
	Calendar cal = new GregorianCalendar(2008, 4, 21, 0, 45, 44);
	// LoggingEvent event = new LoggingEvent("org.apache.log4j.Logger", "root", cal.getTimeInMillis(), Level.WARN,
	// "Hello, World", null);
	LogData event = new LogDataBuilder().withClass("org.apache.log4j.Logger").withLoggerName("")
		.withDate(new Date(cal.getTimeInMillis())).withLevel(java.util.logging.Level.WARNING).withMessage("Hello, World").build();
	AssertJUnit.assertFalse(rule.evaluate(event, null));
    }
Test And of Level and Time when Level does not match.
olv-core/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/AndRuleTest.java