ProjectedJsonObject extends JsonObject { @Override boolean containsKey(String key) { return isVisibleKey(key) && original.containsKey(key); } ProjectedJsonObject(JsonObject original, Set<String> hiddenKeys); @Override Set<String> keySet(); @Override Object get(String name);  }
@Test public void containsKeySuccess() { assertTrue(createSubject().containsKey("not")); }
@Test public void containsKeyIsFalseForHiddenKeys() { assertFalse(createSubject().containsKey("minimum")); }