private FeatureRegistryProvider featureRegistryProvider;
@Before
public void setUp() {
tokenCodec = new FakeSecurityTokenCodec();
featureRegistryProvider = new FeatureRegistryProvider() {
public FeatureRegistry get(String repository) throws GadgetException {
return mockRegistry;
}
};
gadgetHandler = new GadgetsHandlerService(timeSource, processor, urlGenerator, tokenCodec,