@Test
public void end_returns_parent_writer() throws Exception {

  FileContextTestImpl fileContext = new FileContextTestImpl();
  DAWriter parent = new DAWriter() {
  };
  DAClassMethodWriter<DAWriter> classWriter = new DAClassMethodWriter<DAWriter>("name",
      DATypeFactory.from(String.class), fileContext, 1, parent
  );
  assertThat(classWriter.end()).isSameAs(parent);
}