@Test
	public void testSetNamespace_NonExistentNamespace_SameNameAsFunction() throws Exception {

		//
		// Test that we can create a new namespace using the dialog when:
		// 1) that namespace does not exist
		// 2) the namespace matches the existing function name
		// 3) the function name is not default
		//

		String functionName = "Foo";
		Symbol function = createFunction(functionName);

		editLabel(function);
		String nsName = functionName;
		setText(nsName + Namespace.DELIMITER + functionName);
		pressOk();
		assertFalse("Rename unsuccesful", dialog.isShowing());

		Symbol newFunction = getSymbol(functionName);
		Namespace parentNs = newFunction.getParentNamespace();
		assertFalse(parentNs instanceof Function);
		assertEquals(nsName, parentNs.getName());
	}
Catches the issue where the user could not move a label within a
namespace under the Global namespace to directly under the Global
namespace.

see Tracker ID 901
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/label/AddEditDialoglTest.java