Less4jStyleCompiler implements StyleCompiler { @Override public String compile(final Path path) throws CssGenerationException { final LessResource source = new LessResource(path); log.info("Generating CSS from root file: " + path); try { return compiler.compile(source, config).getCss(); } catch(final Less4jException e) { throw new CssGenerationException("Failed to generate CSS from " + path, e); } } Less4jStyleCompiler(final Map<String, String> extraVariables);   Less4jStyleCompiler(final Map<String, String> extraVariables,
                        final DefaultLessCompiler compiler,
                        final LessCompiler.Configuration config); @Override String compile(final Path path);  }
@Test public void testCompileCallsThroughToCompiler() throws Exception { verify(lessCompiler, times(1)) .compile(any(LessResource.class), eq(lessCompilerConfig)); assertEquals(output, "css!"); }