public void testInvalidModel() {
   {
     URI uri = createWorkspaceUri("invalid.ecore"); // $NON-NLS-1$
     assertNotNull(uri);
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
   {
     URI uri = createPlatformUri("invalid.ecore"); // $NON-NLS-1$
     assertNotNull(uri);
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
   {
     URI uri = CustomEmfResourceFactory.createUri(CustomEmfResourceFactory.INVALID_MODEL);
     assertNotNull(uri);
     assertFalse(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertFalse(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertFalse(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
 }
 public void testNonEmptyModel() {
   {
     URI uri = createWorkspaceUri("nonEmpty.ecore"); // $NON-NLS-1$
     assertNotNull(uri);
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
   {
     URI uri = createPlatformUri("nonEmpty.ecore"); // $NON-NLS-1$
     assertNotNull(uri);
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
   {
     URI uri = CustomEmfResourceFactory.createUri(CustomEmfResourceFactory.NON_EMPTY_MODEL);
     assertNotNull(uri);
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExists(uri, new ResourceSetImpl(), false));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), true));
     assertTrue(EmfUtil.isUriExistsAsEObject(uri, new ResourceSetImpl(), false));
   }
 }