@Test
	public void testArrayDataSettingsInAStructure() throws Exception {
		ArrayDataType arrayDataType = new ArrayDataType(new ByteDataType(), 10, 1);
		StructureDataType structDataType = new StructureDataType("TestStruct", 0);
		structDataType.add(new FloatDataType());
		structDataType.add(arrayDataType);

		Structure structDB = (Structure) dataMgr.resolve(structDataType, null);
		DataTypeComponent component = structDB.getComponent(1);
		DataType dataType = component.getDataType();
		assertEquals(5, dataType.getSettingsDefinitions().length);

		listing.createData(addr(0x100), structDB, 0);
		Data data = listing.getDataAt(addr(0x100));
		Data subData = data.getComponent(1);
		SettingsDefinition[] settingsDefinitions = subData.getDataType().getSettingsDefinitions();

		assertArrayEquals(new ByteDataType().getSettingsDefinitions(), settingsDefinitions);

	}
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