@Test
public void testRoleShorterThanRequest() throws Exception {

  Privilege indexer1 = create(new KeyValue("indexer", "ind1"));
  Privilege read =
    create(new KeyValue("indexer", "ind1"), new KeyValue("action", "read"));
  Privilege write =
    create(new KeyValue("indexer", "ind1"), new KeyValue("action", "write"));
  Privilege all =
    create(new KeyValue("indexer", "ind1"), new KeyValue("action", ALL));
  assertTrue(indexer1.implies(read));
  assertTrue(indexer1.implies(write));
  assertTrue(indexer1.implies(all));
  assertFalse(read.implies(indexer1));
  assertFalse(write.implies(indexer1));
  assertTrue(all.implies(indexer1));
}