@Test
	public void testArrayDataSettings() throws Exception {
		ArrayDataType dataType = new ArrayDataType(new ByteDataType(), 10, 1);
		assertEquals(5, dataType.getSettingsDefinitions().length);

		Array array = (Array) dataMgr.resolve(dataType, null);
		assertEquals(5, array.getSettingsDefinitions().length);

		listing.createData(addr(0x100), array, 0);
		Data data = listing.getDataAt(addr(0x100));
		assertEquals(5, data.getDataType().getSettingsDefinitions().length);

		assertArrayEquals(new ByteDataType().getSettingsDefinitions(),
			data.getDataType().getSettingsDefinitions());

	}
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/ArrayTest.java