### Question:
Pretty { public static String clazz(Class<?> clazz) { if (clazz == null) return NULL_STRING; String cn = clazz.getName(); int index = cn.lastIndexOf(DOT); if (index < 0) return cn; return cn.substring(index + 1); }  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 testPrettyClass() { Assert.assertEquals("PrettyTest", Pretty.clazz(this.getClass())); }
@Test public void testPrettyNullClass() { Assert.assertEquals(NULL, Pretty.clazz(null)); }