### Question:
GadgetAdminData { public void setRpcAdminData(RpcAdminData rpcAdminData) { if(rpcAdminData == null) { rpcAdminData = new RpcAdminData(); } this.rpcAdminData = rpcAdminData; } 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 testSetRpcAdminData() { assertEquals(rpcAdminData, whitelistInfo.getRpcAdminData()); whitelistInfo.setRpcAdminData(null); assertEquals(new RpcAdminData(), whitelistInfo.getRpcAdminData()); assertEquals(new RpcAdminData(), blacklistInfo.getRpcAdminData()); blacklistInfo.setRpcAdminData(rpcAdminData); assertEquals(rpcAdminData, blacklistInfo.getRpcAdminData()); assertEquals(new RpcAdminData(), nullInfo.getRpcAdminData()); nullInfo.setRpcAdminData(rpcAdminData); assertEquals(rpcAdminData, nullInfo.getRpcAdminData()); assertEquals(new RpcAdminData(), defaultInfo.getRpcAdminData()); defaultInfo.setRpcAdminData(rpcAdminData); assertEquals(rpcAdminData, defaultInfo.getRpcAdminData()); }