@Test
public void testRoleShorterThanRequest() throws Exception {

  Privilege collection1 = create(new KeyValue("collection", "coll1"));
  Privilege query =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "query"));
  Privilege update =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", "update"));
  Privilege all =
    create(new KeyValue("collection", "coll1"), new KeyValue("action", ALL));
  assertTrue(collection1.implies(query));
  assertTrue(collection1.implies(update));
  assertTrue(collection1.implies(all));
  assertFalse(query.implies(collection1));
  assertFalse(update.implies(collection1));
  assertTrue(all.implies(collection1));
}