### Question:
CachedLESSColorThemeConverter implements CachedCompilerInterface<ColorTheme> { @Override public ColorTheme compute(LESSResourceReference lessResourceReference, boolean includeSkinStyle, boolean useVelocity, boolean useLESS, String skin) throws LESSCompilerException { return getColorThemeFromCSS(lessCompiler.compile(lessResourceReference, false, useVelocity, skin, false)); }  @Override ColorTheme compute(LESSResourceReference lessResourceReference, boolean includeSkinStyle,
        boolean useVelocity, boolean useLESS, String skin);  }### Answer:
@Test public void compute() throws Exception { StringWriter lessSource = new StringWriter(); IOUtils.copy(getClass().getResourceAsStream("/styleWithColorTheme.less"), lessSource); LessCompiler less4jCompiler = new DefaultLessCompiler(); LessCompiler.Configuration options = new LessCompiler.Configuration(); options.setCompressing(true); LessCompiler.CompilationResult lessResult = less4jCompiler.compile(lessSource.toString(), options); when(lessCompiler.compile(any(LESSResourceReference.class), eq(false), eq(false), eq("skin"), eq(false))). thenReturn(lessResult.getCss()); Map<String, String> results = mocker.getComponentUnderTest().compute( new LESSSkinFileResourceReference("file", null, null), false, false, true, "skin"); assertEquals("#E8E8E8", results.get("borderColor")); assertEquals("#3e444c", results.get("highlightColor")); }