@Test
public void test_CommentShouldNotBeMovedToNextLine() throws Exception {
// issue caused linebreaks between comment and statement to be removed
String code = "$a = 10 # comment\n";
XtextResource r = getResourceFromString(code);
String s = serializeFormatted(r.getContents().get(0));
assertEquals("formatting should produce same result", code, s);
}