TypeParameter { @Override public String toString() { return new TypeParameterRenderer().render(this, null); } TypeParameter(String name);  TypeParameter(String name, List<FullyQualifiedJavaType> extendsTypes); String getName(); List<FullyQualifiedJavaType> getExtendsTypes(); @Override String toString();  }
@Test public void testToString() { FullyQualifiedJavaType list = FullyQualifiedJavaType.getNewListInstance(); FullyQualifiedJavaType compare = new FullyQualifiedJavaType("java.util.Comparator"); TypeParameter typeParameter = new TypeParameter("T", Arrays.asList(list, compare)); assertNotNull(typeParameter); assertEquals("T extends List & Comparator", typeParameter.toString()); }