RaptureWebResourceBundle extends ComponentSupport implements WebResourceBundle { @VisibleForTesting List<String> getExtJsNamespaces() { List<String> namespaces = Lists.newArrayList(); for (org.sonatype.nexus.rapture.UiPluginDescriptor descriptor : extJsPluginDescriptors) { String ns = descriptor.getNamespace(); if (ns != null) { namespaces.add(ns); } } return namespaces; } @Inject  RaptureWebResourceBundle(final ApplicationVersion applicationVersion,
                                  final Provider<HttpServletRequest> servletRequestProvider,
                                  final Provider<StateComponent> stateComponentProvider,
                                  final TemplateHelper templateHelper,
                                  final List<UiPluginDescriptor> pluginDescriptors,
                                  final List<org.sonatype.nexus.rapture.UiPluginDescriptor> extJsPluginDescriptors); @Override List<WebResource> getResources();  }
@Test public void testGetExtJsNamespaces() { List<String> namespaces = underTest.getExtJsNamespaces(); assertThat(namespaces, is(asList("namespace-test-1", "namespace-test-2"))); }