### Question:
BasicGadgetAdminStore implements GadgetAdminStore { public boolean isWhitelisted(String container, String gadgetUrl) { if (isWhitelistingEnabled(container)) { return hasGadgetAdminData(container, gadgetUrl); } else { return true; } } @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 testIsWhiteListed() throws Exception { assertTrue(enabledStore.isWhitelisted(DEFAULT, HOROSCOPE)); assertTrue(enabledStore.isWhitelisted(DEFAULT, TEST_GADGET)); assertFalse(enabledStore.isWhitelisted(DEFAULT, "https: assertFalse(enabledStore.isWhitelisted("myContainer", HOROSCOPE)); assertTrue(enabledStore.isWhitelisted(DEFAULT, "http: assertTrue(enabledStore.isWhitelisted(DEFAULT, "http: assertTrue(disabledStore.isWhitelisted(DEFAULT, HOROSCOPE)); assertTrue(disabledStore.isWhitelisted(DEFAULT, TEST_GADGET)); assertTrue(disabledStore.isWhitelisted("myContainer", HOROSCOPE)); }