### Question:
BasicGadgetAdminStore implements GadgetAdminStore { public Set<String> getAdditionalRpcServiceIds(Gadget gadget) { GadgetAdminData gadgetData = this.getGadgetAdminData(getSafeContainerFromGadget(gadget), getSafeGadgetUrlFromGadget(gadget)); Set<String> ids = Sets.newHashSet(); if(gadgetData != null) { ids.addAll(gadgetData.getRpcAdminData().getAdditionalRpcServiceIds()); } return ids; } @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 testGetAdditionalRpcServiceIds() throws Exception { mockGadget(ImmutableList.<Feature>of(), DEFAULT, "http: replay(); assertEquals(Sets.newHashSet("rpc1", "rpc2"), enabledStore.getAdditionalRpcServiceIds(mockGadget)); assertEquals(Sets.newHashSet(), disabledStore.getAdditionalRpcServiceIds(mockGadget)); reset(); mockGadget(ImmutableList.<Feature>of(), DEFAULT, "https: replay(); assertEquals(Sets.newHashSet(), enabledStore.getAdditionalRpcServiceIds(mockGadget)); assertEquals(Sets.newHashSet(), disabledStore.getAdditionalRpcServiceIds(mockGadget)); reset(); mockGadget(ImmutableList.<Feature>of(), DEFAULT, HOROSCOPE); replay(); assertEquals(Sets.newHashSet(), enabledStore.getAdditionalRpcServiceIds(mockGadget)); assertEquals(Sets.newHashSet(), disabledStore.getAdditionalRpcServiceIds(mockGadget)); }