@Test
public void testComment() {

  assertEquals("// Test\n", Begin().Comment("Test").End());
  assertEquals("// //\n// Test\n", Begin().Comment("//").Comment("Test").End());
  assertEquals("// Test\n// Test2\n", Begin().Comment("Test").Comment("Test2").End());
  assertEquals("int a;// Test\n// Test2\n", Begin().Int("a").Comment("Test").Comment("Test2").End());
  assertEquals("int a;\n// Test\n// Test2\n", Begin().Int("a").NewLineComment("Test").NewLineComment("Test2").End());
  assertEquals("int a;hello{// hello\n}// end hello\n", Begin().Int("a").Struct("hello").Comment("hello").CloseStruct().Comment("end hello").End());
}