@Test
	public void testFieldNameWhitespaceConvertedToUnderscores() throws DuplicateNameException {
		StructureDataType newStruct = new StructureDataType("Test", 0);
		DataTypeComponent component = newStruct.add(new ByteDataType(), " name with spaces", null);
		assertEquals("name_with_spaces", component.getFieldName());

		struct = (StructureDB) dataMgr.resolve(newStruct, null);
		component = struct.getComponent(0);
		component.setFieldName("name in db with spaces");
		assertEquals("name_in_db_with_spaces", component.getFieldName());

		component = struct.add(new ByteDataType(), "another test", null);
		assertEquals("another_test", component.getFieldName());

		struct.insert(0, new ByteDataType(), 1, "insert test", "");
		component = struct.getComponent(0);
		assertEquals("insert_test", component.getFieldName());
	}
Test that a structure can contain a pointer in it to a typedef of the same structure.
Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/StructureDBTest.java