### Question:
EOModelHelper { protected InputStream openQueryStream(String entityName) throws Exception { return new URL(modelUrl, entityName + ".fspec").openStream(); } 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 testOpenQueryStream() throws Exception { try (InputStream in = helper.openQueryStream("ExhibitType");) { assertNotNull(in); } }
@Test public void testOpenNonExistentQueryStream() throws Exception { try { helper.openQueryStream("Artist"); fail("Exception expected - artist has no fetch spec."); } catch (IOException ioex) { } }