Identifier fIdentifier = Identifiers.makeUnique(); Identifier sIdentifier = Identifiers.makeUnique(); List anchors1 = new ArrayList(); AnchorFMData ad1 = new AnchorFMData(sIdentifier, location); anchors1.add(ad1); LocatorFMData ld1 = new LocatorFMData(fIdentifier, anchors1, null); List anchors2 = new ArrayList(); AnchorFMData ad2 = new AnchorFMData(sIdentifier, location); anchors2.add(ad2); LocatorFMData ld2 = new LocatorFMData(fIdentifier, anchors2, null); System.out.println("ad1: " + ad1); System.out.println("ad2: " + ad2); System.out.println("ad1.hashCode(): " + ad1.hashCode()); System.out.println("ad2.hashCode(): " + ad2.hashCode()); System.out.println("ad1.equals(ad2): " + ad1.equals(ad2)); System.out.println("ld1: " + ld1); System.out.println("ld2: " + ld2); System.out.println("ld1.hashCode(): " + ld1.hashCode()); System.out.println("ld2.hashCode(): " + ld2.hashCode()); System.out.println("ld1.equals(ld2): " + ld1.equals(ld2));