### Question:
ResourceIndexedSearchParamQuantity extends BaseResourceIndexedSearchParam { @Override public boolean equals(Object theObj) { if (this == theObj) { return true; } if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamQuantity)) { return false; } ResourceIndexedSearchParamQuantity obj = (ResourceIndexedSearchParamQuantity) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getResourceType(), obj.getResourceType()); b.append(getParamName(), obj.getParamName()); b.append(getHashIdentity(), obj.getHashIdentity()); b.append(getHashIdentityAndUnits(), obj.getHashIdentityAndUnits()); b.append(getHashIdentitySystemAndUnits(), obj.getHashIdentitySystemAndUnits()); b.append(isMissing(), obj.isMissing()); return b.isEquals(); } ResourceIndexedSearchParamQuantity();  ResourceIndexedSearchParamQuantity(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, BigDecimal theValue, String theSystem, String theUnits); @Override void copyMutableValuesFrom(T theSource); @Override void calculateHashes(); @Override boolean equals(Object theObj); Long getHashIdentity(); void setHashIdentity(Long theHashIdentity); Long getHashIdentityAndUnits(); void setHashIdentityAndUnits(Long theHashIdentityAndUnits); void setHashIdentitySystemAndUnits(Long theHashIdentitySystemAndUnits); @Override Long getId(); @Override void setId(Long theId); String getSystem(); void setSystem(String theSystem); String getUnits(); void setUnits(String theUnits); BigDecimal getValue(); ResourceIndexedSearchParamQuantity setValue(BigDecimal theValue); @Override int hashCode(); @Override IQueryParameterType toQueryParameterType(); @Override String toString(); @Override boolean matches(IQueryParameterType theParam, boolean theUseOrdinalDatesForDayComparison); static long calculateHashSystemAndUnits(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theSystem, String theUnits); static long calculateHashUnits(PartitionSettings thePartitionSettings, RequestPartitionId theRequestPartitionId, String theResourceType, String theParamName, String theUnits); @Column(name = "SP_SYSTEM", nullable = true, length = MAX_LENGTH)
	@Field
	public String mySystem; @Column(name = "SP_UNITS", nullable = true, length = MAX_LENGTH)
	@Field
	public String myUnits; @Column(name = "SP_VALUE", nullable = true)
	@Field
	@NumericField
	@FieldBridge(impl = BigDecimalNumericFieldBridge.class)
	public BigDecimal myValue; }### Answer:
@Test public void testEquals() { ResourceIndexedSearchParamQuantity val1 = new ResourceIndexedSearchParamQuantity() .setValue(new BigDecimal(123)); val1.setPartitionSettings(new PartitionSettings()); val1.calculateHashes(); ResourceIndexedSearchParamQuantity val2 = new ResourceIndexedSearchParamQuantity() .setValue(new BigDecimal(123)); val2.setPartitionSettings(new PartitionSettings()); val2.calculateHashes(); assertEquals(val1, val1); assertEquals(val1, val2); assertNotEquals(val1, null); assertNotEquals(val1, ""); }