### Question:
BasicGadgetAdminStore implements GadgetAdminStore { public void setGadgetAdminData(String container, String gadgetUrl, GadgetAdminData adminData) { if (serverAdminData.hasContainerAdminData(container)) { ContainerAdminData containerData = serverAdminData.getContainerAdminData(container); containerData.addGadgetAdminData(gadgetUrl, adminData); } } @Inject  BasicGadgetAdminStore(FeatureRegistryProvider featureRegistryProvider,
          ContainerConfig config, ServerAdminData serverAdminData); void init(String store); GadgetAdminData getGadgetAdminData(String container, String gadgetUrl); void setGadgetAdminData(String container, String gadgetUrl, GadgetAdminData adminData); ContainerAdminData getContainerAdminData(String container); void setContainerAdminData(String container, ContainerAdminData containerAdminData); ServerAdminData getServerAdminData(); boolean checkFeatureAdminInfo(Gadget gadget); boolean isAllowedFeature(Feature feature, Gadget gadget); boolean isWhitelisted(String container, String gadgetUrl); Set<String> getAdditionalRpcServiceIds(Gadget gadget);  }### Answer:
@Test public void testSetGadgetAdminData() { assertEquals(horoscopeAdminData, enabledStore.getGadgetAdminData(DEFAULT, HOROSCOPE)); horoscopeAdminData.getFeatureAdminData().addFeature("foo_feature"); enabledStore.setGadgetAdminData(DEFAULT, HOROSCOPE, horoscopeAdminData); assertTrue(enabledStore.getGadgetAdminData(DEFAULT, HOROSCOPE).getFeatureAdminData() .getFeatures().contains("foo_feature")); assertEquals(httpAdminData, enabledStore.getGadgetAdminData(DEFAULT, "http: enabledStore.setGadgetAdminData(DEFAULT, "http: assertEquals(todoAdminData, enabledStore.getGadgetAdminData(DEFAULT, "http: enabledStore.setGadgetAdminData(DEFAULT, "http: assertNotNull(enabledStore.getGadgetAdminData(DEFAULT, "http: enabledStore.setGadgetAdminData(DEFAULT, null, horoscopeAdminData); assertNull(enabledStore.getGadgetAdminData(DEFAULT, null)); }