@Test
	public void testPointerTypedef() throws Exception {

		DataType dt = new PointerTypedef(null, CharDataType.dataType, -1, dtm, 0x8);
		assertTrue(dt.hasLanguageDependantLength());
		assertEquals(4, dt.getLength());
		assertTrue(dt instanceof TypeDef);
		assertEquals("char * " + formatAttributes("offset(0x8)"), dt.getName());
		DataType dbDt = dtm.resolve(dt, null);
		assertTrue(dbDt instanceof TypeDef);
		assertTrue(dbDt instanceof DatabaseObject); // transforms to TypedefDB
		assertTrue(dt.isEquivalent(dbDt));
		assertEquals(dt.getName(), dbDt.getName());

		AddressSpace space = PointerTypedefInspector.getPointerAddressSpace((TypeDef) dbDt,
			program.getAddressFactory());
		assertNull(space);

		dt = new PointerTypedef(null, CharDataType.dataType, -1, dtm,
			PointerType.RELATIVE);
		assertTrue(dt.hasLanguageDependantLength());
		assertEquals(4, dt.getLength());
		assertTrue(dt instanceof TypeDef);
		assertEquals("char * " + formatAttributes("relative"), dt.getName());
		dbDt = dtm.resolve(dt, null);
		assertTrue(dbDt instanceof TypeDef);
		assertTrue(dbDt instanceof DatabaseObject); // transforms to TypedefDB
		assertTrue(dt.isEquivalent(dbDt));
		assertEquals(dt.getName(), dbDt.getName());

		assertEquals(PointerType.RELATIVE, PointerTypedefInspector.getPointerType((TypeDef) dbDt));

	}
Tests for manipulating data types in the category/data type tree.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/model/data/PointerTypedefDataTypeTest.java