### Question:
TypeRenderUtils { public static String drawReturn(Method method) { return StringUtils.classname(method.getReturnType()); }  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 testDrawReturn() throws NoSuchMethodException { Class[] classesOfParameters = new Class[2]; classesOfParameters[0] = int.class; classesOfParameters[1] = boolean.class; assertThat(TypeRenderUtils.drawReturn(TestClass.class.getMethod("testMethod", classesOfParameters)), is(equalTo("int"))); assertThat(TypeRenderUtils.drawReturn(TestClass.class.getMethod("anotherTestMethod")), is(equalTo("void"))); assertThat(TypeRenderUtils.drawReturn(String.class.getMethod("isEmpty")), is(equalTo("boolean"))); }
@Test(expected = NoSuchMethodException.class) public void testDrawReturnThrowsException() throws NoSuchMethodException { assertThat(TypeRenderUtils.drawReturn(TestClass.class.getMethod("method")), is(equalTo(""))); }