### Question:
GadgetAdminData { @Override public boolean equals(Object obj) { if (obj instanceof GadgetAdminData) { GadgetAdminData test = (GadgetAdminData) obj; return this.getFeatureAdminData().equals(test.getFeatureAdminData()) && this.getRpcAdminData().equals(test.getRpcAdminData()); } return false; } GadgetAdminData();  GadgetAdminData(FeatureAdminData featureAdminData,
          RpcAdminData rpcAdminData); FeatureAdminData getFeatureAdminData(); void setFeatureAdminData(FeatureAdminData featureAdminData); RpcAdminData getRpcAdminData(); void setRpcAdminData(RpcAdminData rpcAdminData); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertTrue(whitelistInfo.equals(new GadgetAdminData(whitelistFeatures, rpcAdminData))); assertTrue(nullInfo.equals(new GadgetAdminData(null, null))); assertTrue(defaultInfo.equals(new GadgetAdminData())); assertTrue(nullInfo.equals(defaultInfo)); assertFalse(whitelistInfo.equals(null)); assertFalse(whitelistInfo.equals(new Object())); assertFalse(whitelistInfo.equals(blacklistInfo)); assertFalse(whitelistInfo.equals(defaultInfo)); assertFalse(whitelistInfo.equals(nullInfo)); }