@Test
public void appendGeneratedAnnotation_from_Class_adds_generated_annotation_with_class_qualifiedName_and_newLine()
    throws Exception {

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