ClientClassnameForMethod classnameFor14Method = new ClientClassnameForMethod(conversions);
ClientClassnameForMethod classnameFor15Method = new ClientClassnameForMethod(conversions);
classnameFor15Method.setJdk15(true);
TypeDeclaration classDeclaration = getDeclaration("org.codehaus.enunciate.samples.xfire_client.with.a.nested.pckg.NestedPackageClass");
assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageClass", classnameFor14Method.convert(classDeclaration));
assertEquals("org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageClass", classnameFor15Method.convert(classDeclaration));
for (FieldDeclaration fieldDeclaration : classDeclaration.getFields()) {
if ("items".equals(fieldDeclaration.getSimpleName())) {
assertEquals(Collection.class.getName(), classnameFor14Method.convert(fieldDeclaration.getType()));
assertEquals("java.util.Collection<org.codehaus.enunciate.other.pckg.and.nested.pckg.NestedPackageItem>", classnameFor15Method.convert(fieldDeclaration.getType()));
}