@Test
public void appendImports_filters_out_null_DAName_when_no_package_is_specified() throws Exception {

  FileContextTestImpl fileContext = new FileContextTestImpl();
  new DAFileWriter(fileContext.getWriter())
      .appendImports(Collections.singletonList((DAImport) null));
  assertThat(fileContext.getRes()).isEqualTo("");
}