@Test
public void testActionAll() throws Exception {

  Privilege coll1All =
     create(new KeyValue("collection", "coll1"), new KeyValue("action", ALL));
  Privilege coll1Update =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "update"));
  Privilege coll1Query =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "query"));
  assertTrue(coll1All.implies(coll1All));
  assertTrue(coll1All.implies(coll1Update));
  assertTrue(coll1All.implies(coll1Query));
  assertFalse(coll1Update.implies(coll1All));
  assertFalse(coll1Query.implies(coll1All));
  // test different lengths
  Privilege coll1 =
     create(new KeyValue("collection", "coll1"));
  assertTrue(coll1All.implies(coll1));
  assertTrue(coll1.implies(coll1All));
}