### Question:
EOModelProcessor { public DataMap loadEOModel(URL url) throws Exception { return loadEOModel(url, false); } EOModelProcessor(); Map loadModeIndex(URL url); DataMap loadEOModel(URL url); DataMap loadEOModel(URL url, boolean generateClientClass);  }### Answer:
@Test public void testLoadModel() throws Exception { URL url = getClass().getClassLoader().getResource("wotests/art.eomodeld/"); assertNotNull(url); DataMap map = processor.loadEOModel(url); assertLoaded("art", map); assertLoadedQueries(map); assertOneWayRelationships(map); assertLoadedCustomTypes(map); }
@Test public void testLoadModelWithDependencies() throws Exception { URL url = getClass().getClassLoader().getResource("wotests/cross-model-relationships.eomodeld/"); assertNotNull(url); DataMap map = processor.loadEOModel(url); ObjEntity entity = map.getObjEntity("CrossModelRelTest"); assertNotNull(entity); ObjAttribute a1 = entity.getAttribute("testAttribute"); assertNotNull(a1); DbAttribute da1 = a1.getDbAttribute(); assertNotNull(da1); assertSame(da1, entity.getDbEntity().getAttribute("TEST_ATTRIBUTE")); assertEquals(0, entity.getRelationships().size()); assertEquals(0, entity.getDbEntity().getRelationships().size()); }
@Test public void testLoadFlattened() throws Exception { URL url = getClass().getClassLoader().getResource("wotests/flattened.eomodeld/"); assertNotNull(url); DataMap map = processor.loadEOModel(url); ObjEntity artistE = map.getObjEntity("Artist"); assertNotNull(artistE); assertEquals(2, artistE.getRelationships().size()); assertNotNull(artistE.getRelationship("exhibitArray")); assertNotNull(artistE.getRelationship("artistExhibitArray")); }
@Test public void testLoadBrokenModel() throws Exception { URL url = getClass().getClassLoader().getResource("art-with-errors.eomodeld/"); assertNotNull(url); DataMap map = processor.loadEOModel(url); assertLoaded("art-with-errors", map); }