private void assertNestedScalarsInTable(Program p) {

		ScalarSearchModel model = provider.getScalarModel();
		waitForTableModel(model);

		List<ScalarRowObject> data = model.getModelData();
		List<Address> tableAddress = new ArrayList<>();

		for (ScalarRowObject rowObject : data) {
			tableAddress.add(rowObject.getAddress());
		}

		DataIterator compositeData = p.getListing().getCompositeData(true);

		while (compositeData.hasNext()) {

			Data structureData = compositeData.next();
			Address address = structureData.getComponent(0).getAddress();

			if (!tableAddress.contains(address)) {
				fail("Table not created correctly: could not find address " + address +
					"in scalar table.");
			}
		}
	}
Function for the case when the min is greater than the max.
In this case, the program expects for there to be 0 entries in the scalar table.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/scalartable/ScalarSearchTest.java