FeatureResource resource = mockResource(DEFER_JS_DEB);
FeatureRegistry.FeatureBundle bundle = mockExportJsBundle(resource);
LookupResult lookupMock = mockLookupResult(bundle);
final FeatureRegistry featureRegistryMock = mockRegistry(lookupMock);
featureRegistry = featureRegistryMock;
FeatureRegistryProvider registryProvider = new FeatureRegistryProvider() {
public FeatureRegistry get(String repository) {
return featureRegistryMock;
}
};
processor = new DeferJsProcessor(registryProvider, contextProviderMock);