### Question:
TypeRenderUtils { public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); }  static String drawInterface(Class<?> clazz); static String drawParameters(Method method); static String drawParameters(Constructor constructor); static String drawParameters(String[] parameterTypes); static String drawReturn(Method method); static String drawExceptions(Method method); static String drawExceptions(Constructor constructor); static String drawExceptions(String[] exceptionTypes); static Element drawSuperClass(ClassDetailVO clazz); static Element drawClassLoader(ClassVO clazz); static Element drawTree(String[] nodes); static Element drawField(ClassDetailVO clazz, Integer expand); static String drawAnnotation(String... annotations); static String[] getAnnotations(Class<?> clazz); static String[] getAnnotations(Annotation[] annotations); static String[] getInterfaces(Class clazz); static String[] getSuperClass(Class clazz); static String[] getClassloader(Class clazz); static FieldVO[] getFields(Class clazz);  }### Answer:
@Test public void testDrawExceptionsForMethod() throws NoSuchMethodException { Class[] classesOfParameters = new Class[2]; classesOfParameters[0] = int.class; classesOfParameters[1] = boolean.class; assertThat(TypeRenderUtils.drawExceptions(TestClass.class.getMethod("testMethod", classesOfParameters)), is(equalTo(""))); assertThat(TypeRenderUtils.drawExceptions(TestClass.class.getMethod("anotherTestMethod")), is(equalTo("java.lang.NullPointerException"))); assertThat(TypeRenderUtils.drawExceptions(String.class.getMethod("getBytes", String.class)), is(equalTo("java.io.UnsupportedEncodingException"))); }
@Test(expected = NoSuchMethodException.class) public void testDrawExceptionsForMethodThrowsException() throws NoSuchMethodException { assertThat(TypeRenderUtils.drawExceptions(TestClass.class.getMethod("method")), is(equalTo(""))); }
@Test public void testDrawExceptionsForConstructor() throws NoSuchMethodException { Class[] classesOfConstructorParameters = new Class[2]; classesOfConstructorParameters[0] = byte[].class; classesOfConstructorParameters[1] = String.class; assertThat(TypeRenderUtils.drawExceptions(String.class.getConstructor()), is(equalTo(""))); assertThat(TypeRenderUtils.drawExceptions(String.class.getConstructor(classesOfConstructorParameters)), is(equalTo("java.io.UnsupportedEncodingException"))); }
@Test(expected = NoSuchMethodException.class) public void testDrawExceptionsForConstructorThrowsException() throws NoSuchMethodException { assertThat(TypeRenderUtils.drawExceptions(TestClass.class.getConstructor()), is(equalTo(""))); }