protected void checkDataType(long from, long to, Class<?> dtClass, int definedCount,
			int undefinedCount) {

		Address fromAddr = addr(from);
		Address toAddr = addr(to);

		DataIterator iter = program.getListing().getData(fromAddr, true);
		int dcnt = 0;
		int ucnt = 0;
		while (iter.hasNext()) {
			Data d = iter.next();
			if (d.getMinAddress().compareTo(toAddr) > 0) {
				break;
			}
			if (dtClass != null && dtClass.isInstance(d.getBaseDataType())) {
				++dcnt;
			}
			else if (!d.isDefined()) {
				++ucnt;
			}
		}

		if (dtClass != null) {
			assertEquals("Instances of " + dtClass.getName(), definedCount, dcnt);
		}
		assertEquals("Undefined data", undefinedCount, ucnt);
	}
Test MNEMONIC data setting
@param testDefaultSetting if true test default setting, else test instance setting for data2
@param insideStruct data are inside two structure instances
@param commonStruct data structures are the same type
@param data1 data at some location with same type as data2
@param data2 data at current location
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/data/AbstractDataActionTest.java