public void testNewInstance() throws IOException, CoreException {
   IStructuredModel model = getTestModel();
   try {
     IStructuredModel newInstance = null;
     try {
       newInstance = model.newInstance();
     } catch (IOException e) {
       assertTrue("IOException during model new instance", false);
     }
     assertNotNull("new instance is null", newInstance);
   } finally {
     if (model != null) {
       model.releaseFromEdit();
     }
   }
 }