IDocument document = new Document(createString(getTestClasses()));
// Apply the formatting and test the result
TextEdit formatEdit = JsniFormattingUtil.format(document, javaPrefs, javaScriptPrefs, new Range(0, document.get().length(), true));
formatEdit.apply(document);
Assert.assertEquals(getFormattedDocument(), document.get());
System.err.println("---------------------------");
System.err.println(getFormattedDocument());
System.err.println("---------------------------");