@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());
}