GWTScriptPluginProcessor implements PluginProcessor { @Override public boolean shouldProcess(String pluginName) { return pluginName.endsWith(PluginProcessorType.GWT.getExtension()); } GWTScriptPluginProcessor(); @Inject  GWTScriptPluginProcessor(final ScriptRegistry scriptRegistry,
                                    final Event<PluginAddedEvent> pluginAddedEvent,
                                    final Event<PluginUpdatedEvent> pluginUpdatedEvent); @Override void removeAll(); @Override boolean isRegistered(String pluginName); @Override boolean shouldProcess(String pluginName); @Override void process(String pluginName,
                        String pluginDeploymentDir,
                        boolean notifyClients);  }
@Test public void shouldProcessTest() throws Exception { assertFalse(processor.shouldProcess("pluginname.html")); assertTrue(processor.shouldProcess("pluginname.nocache.js")); }