### Question:
ResourceIndexedSearchParamToken extends BaseResourceIndexedSearchParam { @Override public boolean equals(Object theObj) { if (this == theObj) { return true; } if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamToken)) { return false; } ResourceIndexedSearchParamToken obj = (ResourceIndexedSearchParamToken) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getHashSystem(), obj.getHashSystem()); b.append(getHashValue(), obj.getHashValue()); b.append(getHashSystemAndValue(), obj.getHashSystemAndValue()); return b.isEquals(); } ResourceIndexedSearchParamToken();  ResourceIndexedSearchParamToken(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, String theSystem, String theValue); @Override void copyMutableValuesFrom(T theSource); @Override void calculateHashes(); @Override boolean equals(Object theObj); @Override Long getId(); @Override void setId(Long theId); String getSystem(); void setSystem(String theSystem); String getValue(); ResourceIndexedSearchParamToken setValue(String theValue); @Override int hashCode(); @Override IQueryParameterType toQueryParameterType(); @Override String toString(); @Override boolean matches(IQueryParameterType theParam, boolean theUseOrdinalDatesForDayComparison); static long calculateHashSystem(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem); static long calculateHashSystemAndValue(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theValue); static long calculateHashValue(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theValue); static final int MAX_LENGTH; @Field()
	@Column(name = "SP_SYSTEM", nullable = true, length = MAX_LENGTH)
	public String mySystem; }### Answer:
@Test public void testEquals() { ResourceIndexedSearchParamToken val1 = new ResourceIndexedSearchParamToken() .setValue("AAA"); val1.setPartitionSettings(new PartitionSettings()); val1.calculateHashes(); ResourceIndexedSearchParamToken val2 = new ResourceIndexedSearchParamToken() .setValue("AAA"); val2.setPartitionSettings(new PartitionSettings()); val2.calculateHashes(); assertEquals(val1, val1); assertEquals(val1, val2); assertNotEquals(val1, null); assertNotEquals(val1, ""); }