### Question:
GssCompiler { public GssTree compile(TreeLogger logger, String css) throws UnableToCompleteException { TreeLogger branchLogger = logger.branch(TreeLogger.DEBUG, "Parsing LESS output as GSS stylesheet"); SourceCode lessOutput = new SourceCode("less.css", css); try { CssTree tree = new GssParser(lessOutput).parse(); finalizeTree(logger, tree); return new GssTree(tree); } catch (GssParserException e) { branchLogger.log(TreeLogger.ERROR, "Unable to parse CSS", e); throw new UnableToCompleteException(); } }  GssTree compile(TreeLogger logger, String css);  }### Answer:
@Test public void collectClassNames() throws UnableToCompleteException { String css = ".foobar { font-weight: bold; }\n" + ".bazinga { color: blue; }\n"; GssTree tree = new GssCompiler().compile(logger, css); assertTrue(tree.getClassNames().contains("foobar")); assertTrue(tree.getClassNames().contains("bazinga")); }