### Question:
TypeRenderUtils { public static String drawParameters(Method method) { return StringUtils.concat("\n", method.getParameterTypes()); }  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 testDrawParametersForMethod() throws NoSuchMethodException { Class[] classesOfParameters = new Class[2]; classesOfParameters[0] = int.class; classesOfParameters[1] = boolean.class; assertThat(TypeRenderUtils.drawParameters(TestClass.class.getMethod("testMethod", classesOfParameters)), is(equalTo("int\nboolean"))); assertThat(TypeRenderUtils.drawParameters(TestClass.class.getMethod("anotherTestMethod")), is(equalTo(""))); assertThat(TypeRenderUtils.drawParameters(String.class.getMethod("charAt", int.class)), is(equalTo("int"))); assertThat(TypeRenderUtils.drawParameters(String.class.getMethod("isEmpty")), is(equalTo(""))); }
@Test(expected = NoSuchMethodException.class) public void testDrawParametersForMethodThrowsException() throws NoSuchMethodException { assertThat(TypeRenderUtils.drawParameters(TestClass.class.getMethod("method")), is(equalTo(""))); }
@Test public void testDrawParametersForConstructor() throws NoSuchMethodException { Class[] classesOfParameters = new Class[3]; classesOfParameters[0] = char[].class; classesOfParameters[1] = int.class; classesOfParameters[2] = int.class; assertThat(TypeRenderUtils.drawParameters(String.class.getConstructor(classesOfParameters)), is(equalTo("[]\nint\nint"))); assertThat(TypeRenderUtils.drawParameters(String.class.getConstructor()), is(equalTo(""))); }
@Test(expected = NoSuchMethodException.class) public void testDrawParametersForConstructorThrowsException() throws NoSuchMethodException { assertThat(TypeRenderUtils.drawParameters(TestClass.class.getConstructor()), is(equalTo(""))); }