EntityTypeToFilterQueryService { public boolean hasKey(String key) { return map.containsKey(key); }  void setMap(Map map); Map getMap(); String getFilterQueryForKey(String key); boolean hasKey(String key);  }
@Test public void testHasKey() { Map<String, String> map = new HashMap<String, String>(); map.put("key", "value"); entityTypeToFilterQueryService.setMap(map); assertEquals("TestHasKey 0", true, entityTypeToFilterQueryService.hasKey("key")); }