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

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