FrontendDependencies extends AbstractDependenciesScanner { @Override public Set<String> getScripts() { Set<String> all = new LinkedHashSet<>(); for (EndPointData data : endPoints.values()) { all.addAll(data.getScripts()); } return all; } FrontendDependencies(ClassFinder finder);  FrontendDependencies(ClassFinder finder,
            boolean generateEmbeddableWebComponents); @Override Map<String, String> getPackages(); @Override List<String> getModules(); @Override Set<String> getScripts(); @Override Set<CssData> getCss(); @Override Set<String> getClasses(); Collection<EndPointData> getEndPoints(); @Override ThemeDefinition getThemeDefinition(); @Override AbstractTheme getTheme(); @Override String toString();  }
@Test public void jsScriptOrderIsPreserved() throws ClassNotFoundException { Mockito.when(classFinder.getAnnotatedClasses(Route.class)) .thenReturn(Collections.singleton(JsOrderComponent.class)); FrontendDependencies dependencies = new FrontendDependencies( classFinder, false); Set<String> scripts = dependencies.getScripts(); Assert.assertEquals(LinkedHashSet.class, scripts.getClass()); Assert.assertEquals(new ArrayList<>(dependencies.getScripts()), Arrays.asList("a.js", "b.js", "c.js")); }