@Test
public void testSimpleAction() throws Exception {

  Privilege read =
    create(new KeyValue("indexer", "ind1"), new KeyValue("action", "read"));
  Privilege write =
    create(new KeyValue("indexer", "ind1"), new KeyValue("action", "write"));
  Privilege readCase =
    create(new KeyValue("indeXeR", "iNd1"), new KeyValue("AcTiOn", "ReAd"));
  assertTrue(read.implies(read));
  assertTrue(write.implies(write));
  assertTrue(read.implies(readCase));
  assertTrue(readCase.implies(read));
  assertFalse(read.implies(write));
  assertFalse(readCase.implies(write));
  assertFalse(write.implies(read));
  assertFalse(write.implies(readCase));
}