@Test
public void testGetMethod() throws NoSuchMethodException {

    Assertions.assertEquals("public int java.lang.String.length()",
            ReflectionUtil.getMethod(String.class, "length", null)
                    .toString());
    Assertions.assertEquals("public char java.lang.String.charAt(int)",
            ReflectionUtil.getMethod(String.class, "charAt",
                    new Class<?>[]{int.class}).toString());
    Assertions.assertThrows(NoSuchMethodException.class,
            () -> ReflectionUtil.getMethod(String.class, "size", null));
}