[nobug] migration work + Committed for BLB
diff --git a/tests/org.eclipse.wst.common.tests/frameworktests/org/eclipse/wst/common/frameworks/componentcore/tests/StructureEditAPITest.java b/tests/org.eclipse.wst.common.tests/frameworktests/org/eclipse/wst/common/frameworks/componentcore/tests/StructureEditAPITest.java
index bd6bf48..ec29ce4 100644
--- a/tests/org.eclipse.wst.common.tests/frameworktests/org/eclipse/wst/common/frameworks/componentcore/tests/StructureEditAPITest.java
+++ b/tests/org.eclipse.wst.common.tests/frameworktests/org/eclipse/wst/common/frameworks/componentcore/tests/StructureEditAPITest.java
@@ -624,30 +624,25 @@
 
 	public void testGetFirstArtifactEditForRead() {
 		StructureEdit moduleCore = null;
+		ArtifactEdit edit = null;
 		try {
-			ArtifactEdit edit = StructureEdit.getFirstArtifactEditForRead(project);
+			edit = StructureEdit.getFirstArtifactEditForRead(project);
+
 		} finally {
 			if (moduleCore != null) {
 				moduleCore.dispose();
+				edit.dispose();
 
 			}
-			assertNotNull(moduleCore);
+			assertNotNull(edit);
 
 		}
 	}
 
 	public void testCreateComponentURI() {
 		StructureEdit moduleCore = null;
-		try {
-			StructureEdit.createComponentURI(project,"testComp");
-		} finally {
-			if (moduleCore != null) {
-				moduleCore.dispose();
+		URI uri = StructureEdit.createComponentURI(project, "testComp");
+		assertNotNull(uri);
 
-			}
-			assertNotNull(moduleCore);
-
-		}
 	}
-
 }