   @Test
   public void testBooleanOperators() throws Exception {

      assertTrue(Query.parse("not host = 1").call(Event.builder().withHost("2").build()));
      assertFalse(Query.parse("not host = 1").call(Event.builder().withHost("1").build()));

      assertTrue(Query.parse("host = 1 and state = 2").call(Event.builder().withHost("1").withState("2").build()));
      assertFalse(Query.parse("host = 1 and state = 2").call(Event.builder().withHost("2").withState("1").build()));

      assertTrue(Query.parse("host = 1 or state = 2").call(Event.builder().withHost("1").withState("1").build()));
      assertTrue(Query.parse("host = 1 or state = 2").call(Event.builder().withHost("2").withState("2").build()));
   }