Bug 261567 - [launching] ILaunchConfiguration's getLocation returns different values at different times
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
index 85d49fb..1edee95 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * Copyright (c) 2000, 2009 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -1012,6 +1012,17 @@
 		 }
 		 
 	}
+	
+	/**
+	 * Tests the location of a local working copy.
+	 * 
+	 * @throws CoreException
+	 */
+	public void testWorkingCopyGetLocation() throws CoreException {
+		ILaunchConfigurationWorkingCopy workingCopy = newConfiguration(null, "test-get-location");
+		IPath location = workingCopy.getLocation();
+		assertEquals("Wrong path for local working copy", LaunchManager.LOCAL_LAUNCH_CONFIGURATION_CONTAINER_PATH.append("test-get-location.launch"), location);
+	}
 }