### Question:
ServerAdminData { @Override public boolean equals(Object obj) { if (obj instanceof ServerAdminData) { ServerAdminData test = (ServerAdminData) obj; return test.getContainerAdminDataMap().equals(this.containerAdminDataMap); } return false; } @Inject  ServerAdminData();  ServerAdminData(@Nullable Map<String, ContainerAdminData> containerAdminMap); ContainerAdminData getContainerAdminData(String container); void removeContainerAdminData(String container); void addContainerAdminData(String container, ContainerAdminData toAdd); Map<String, ContainerAdminData> getContainerAdminDataMap(); void clearContainerAdminData(); boolean hasContainerAdminData(String container); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void testEqualsObject() { Map<String, ContainerAdminData> testMap = Maps.newHashMap(); testMap.put(DEFAULT, defaultContainerData); testMap.put(MY_CONTAINER, myContainerData); assertTrue(validData.equals(new ServerAdminData(testMap))); assertFalse(validData.equals(nullData)); assertTrue(nullData.equals(defaultData)); testMap = Maps.newHashMap(); testMap.put(MY_CONTAINER, myContainerData); assertFalse(validData.equals(testMap)); }