### Question:
EOModelHelper { public Iterator queryNames(String entityName) { Map queryPlist = (Map) entityQueryIndex.get(entityName); if (queryPlist == null || queryPlist.isEmpty()) { return Collections.emptyIterator(); } return queryPlist.keySet().iterator(); } EOModelHelper(URL modelUrl); String javaTypeForEOModelerType(String valueClassName, String valueType); DataMap getDataMap(); URL getModelUrl(); Iterator modelNames(); List modelNamesAsList(); Map getPrototypeAttributeMapFor(String aPrototypeAttributeName); Map entityPListMap(String entityName); Iterator queryNames(String entityName); Map queryPListMap(String entityName, String queryName); String entityClass(String entityName, boolean getClientClass);  }### Answer:
@Test public void testQueryNames() throws Exception { Iterator artistNames = helper.queryNames("Artist"); assertFalse(artistNames.hasNext()); Iterator etNames = helper.queryNames("ExhibitType"); assertTrue(etNames.hasNext()); List list = new ArrayList(); while (etNames.hasNext()) { list.add(etNames.next()); } assertEquals(2, list.size()); assertTrue(list.contains("FetchAll")); assertTrue(list.contains("TestQuery")); }