ClientLibrariesImpl implements ClientLibraries { @Override public String getJsIncludes() { return getLibIncludes(LibraryType.JS); }  @NotNull @Override String getJsInline(); @NotNull @Override String getCssInline(); @Override String getJsIncludes(); @Override String getCssIncludes(); @Override String getJsAndCssIncludes(); static final String COMPONENTS_SERVICE; }
@Test void testGetJsIncludes() { Map<String,Object> attributes = new HashMap<>(); attributes.put("categories", TEASER_CATEGORY + "," + ACCORDION_CATEGORY + "," + CAROUSEL_CATEGORY); ClientLibraries clientlibs = getClientLibrariesUnderTest(ROOT_PAGE, attributes); StringBuilder jsInclude = new StringBuilder(); jsInclude.append(jsIncludes.get(TEASER_CATEGORY)); jsInclude.append(jsIncludes.get(ACCORDION_CATEGORY)); jsInclude.append(jsIncludes.get(CAROUSEL_CATEGORY)); assertEquals(jsInclude.toString(), clientlibs.getJsIncludes()); }