@Test
    public void testEquals() {
		AddressSpace sp2 = new GenericAddressSpace("AnotherSpace", 8, AddressSpace.TYPE_RAM, 1);
		assertTrue(!space.equals(sp2));

		assertTrue(space.equals(space));

		sp2 = new GenericAddressSpace("Test", 16, AddressSpace.TYPE_RAM, 2);
		assertTrue(!space.equals(sp2));

		sp2 = new GenericAddressSpace("Test", 20, AddressSpace.TYPE_RAM, 3);
		assertTrue(!space.equals(sp2));

		sp2 = new SegmentedAddressSpace("Test", 0);
		assertTrue(space.equals(sp2));

	}
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/model/address/SegmentedAddressSpaceTest.java