### Question:
Pretty { public static String type(Type t) { if (t == null) return NULL_STRING; if (t instanceof Class) { return clazz((Class<?>) t); } if (t instanceof ParameterizedType) { return pType((ParameterizedType) t); } return t.toString(); }  static String clazz(Class<?> clazz); static String pType(ParameterizedType pType); static String type(Type t); static String constructor(Constructor<?> constructor); static String method(Method method); static String field(Field field); static String array(Object[] array); static String collection(Collection<?> collection);  }### Answer:
@Test public void testPrettyPT2() { ParameterizedTypeImpl pti = new ParameterizedTypeImpl(Map.class, String.class, Integer.class); Assert.assertEquals("Map<String,Integer>", Pretty.type(pti)); }
@Test public void testPrettyNullType() { Assert.assertEquals(NULL, Pretty.type(null)); }
@Test public void testPrettyPT() { ParameterizedTypeImpl pti = new ParameterizedTypeImpl(List.class, String.class); Assert.assertEquals("List<String>", Pretty.type(pti)); }