@Test
public void test() {
TrailingCommaCheck check = new TrailingCommaCheck();
SourceFile file = JavaScriptAstScanner.scanSingleFile(new File("src/test/resources/checks/trailingComma.js"), check);
CheckMessagesVerifier.verify(file.getCheckMessages())
.next().atLine(1).withMessage("Avoid trailing comma in array and object literals.")
.next().atLine(4).withMessage("Avoid trailing comma in array and object literals.")
.noMore();
}