@Test
public void appendGeneratedAnnotation_from_String_adds_generated_annotation_and_newLine() throws Exception {

  FileContextTestImpl fileContext = new FileContextTestImpl();
  new DAFileWriter(fileContext.getWriter()).appendGeneratedAnnotation(MyProcessor.class.getCanonicalName());
  assertThat(fileContext.getRes()).isEqualTo(
      "@javax.annotation.Generated(\"" + MyProcessor.class.getCanonicalName() + "\")" + LINE_SEPARATOR
  );
}