IinDetailsResponse implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || o.getClass() != getClass()) { return false; } IinDetailsResponse otherResponse = (IinDetailsResponse)o; return (status != null ? status.equals(otherResponse.status) : otherResponse.status == null) && (coBrands != null ? coBrands.equals(otherResponse.coBrands) : otherResponse.coBrands == null) && (countryCode != null ? countryCode.equals(otherResponse.countryCode) : otherResponse.countryCode == null) && (paymentProductId != null ? paymentProductId.equals(otherResponse.paymentProductId) : otherResponse.paymentProductId == null) && isAllowedInContext == otherResponse.isAllowedInContext(); } IinDetailsResponse(IinStatus status); String getPaymentProductId(); IinStatus getStatus(); void setStatus(IinStatus status); CountryCode getCountryCode(); boolean isAllowedInContext(); List<IinDetail> getCoBrands(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEqualsIinDetailsResponse() { assertTrue(fstNormalVisa.equals(sndNormalVisa)); assertTrue(sndNormalVisa.equals(fstNormalVisa)); assertFalse(fstNormalMC.equals(fstNormalVisa)); assertTrue(fstMinimalVisa.equals(sndMinimalVisa)); assertTrue(sndMinimalVisa.equals(fstMinimalVisa)); assertFalse(fstMinimalVisa.equals(fstMinimalMC)); assertFalse(fstNormalVisa.equals(fstMinimalVisa)); assertFalse(fstNormalMC.equals(fstMinimalMC)); assertTrue(fstEmptyWithCodeUnknown.equals(sndEmptyWithCodeUnknown)); assertFalse(fstEmptyWithCodeUnknown.equals(fstEmptyWithCodeExistingButNotAllowed)); assertFalse(fstEmptyWithCodeUnknown.equals(fstEmptyWithCodeNotEnoughDigits)); assertFalse(fstEmptyWithCodeUnknown.equals(fstEmptyWithCodeSupported)); assertFalse(fstNormalVisa.equals(fstNormalResponseVisaNoCoBrands)); assertFalse(fstNormalVisa.equals(null)); assertFalse(fstEmptyWithCodeUnknown.equals(null)); assertFalse(fstEmptyWithCodeSupported.equals(null)); }