@Test
	public void testGetInstanceNames() throws Exception {
		Data data = listing.getDataAt(addr(10));
		data.setString(STRING_SETTING_NAME, "red");
		data.setLong(LONG_SETTING_NAME, 10);

		String[] names = data.getNames();
		assertEquals(2, names.length);
	}
Test setting default and instance settings on Data.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/InstanceSettingsTest.java