PolicyTrie { boolean hasChild(final JsonKey childKey) { return children.containsKey(childKey); } private  PolicyTrie(); private  PolicyTrie(final GrantRevokeIndex grantRevokeIndex, final Map<JsonKey, PolicyTrie> children);   }
@Test public void policyTrieHasChildThing() { final JsonKey child = JsonFactory.newKey("thing"); final boolean hasChild = underTest.hasChild(child); assertThat(hasChild).as("Has child '%s'", child).isTrue(); }