@Test
public void testSimpleAction() throws Exception {

  Privilege query =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "query"));
  Privilege update =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "update"));
  Privilege queryCase =
    create(new KeyValue("colleCtIon", "coLl1"), new KeyValue("AcTiOn", "QuERy"));
  assertTrue(query.implies(query));
  assertTrue(update.implies(update));
  assertTrue(query.implies(queryCase));
  assertTrue(queryCase.implies(query));
  assertFalse(query.implies(update));
  assertFalse(queryCase.implies(update));
  assertFalse(update.implies(query));
  assertFalse(update.implies(queryCase));
}