@Test(dataProvider = "array_or_declared_DP")
public void appendType_type_from_other_package_with_import_uses_simple_reference(DAType type) throws Exception {

  FileContextTestImpl fileContext = fileContext("com.foo", true, false);
  CommonMethods commonMethods = new CommonMethodsImpl(fileContext, 0);
  commonMethods.appendType(type);
  assertThat(fileContext.getRes()).isEqualTo(type.isArray() ? "Name[]" : "Name");
}