@Test
public void testActionAll() throws Exception {

  Privilege ind1All =
     create(new KeyValue("indexer", "index1"), new KeyValue("action", ALL));
  Privilege ind1Write =
    create(new KeyValue("indexer", "index1"), new KeyValue("action", "write"));
  Privilege ind1Read =
    create(new KeyValue("indexer", "index1"), new KeyValue("action", "read"));
  assertTrue(ind1All.implies(ind1All));
  assertTrue(ind1All.implies(ind1Write));
  assertTrue(ind1All.implies(ind1Read));
  assertFalse(ind1Write.implies(ind1All));
  assertFalse(ind1Read.implies(ind1All));
  // test different lengths
  Privilege ind1 =
     create(new KeyValue("indexer", "index1"));
  assertTrue(ind1All.implies(ind1));
  assertTrue(ind1.implies(ind1All));
}