@Test
public void testInvokeMethod() throws NoSuchMethodException,
        IllegalAccessException, InvocationTargetException {

    Assertions.assertEquals(0, ReflectionUtil.invokeMethod("", "length"));
    Assertions.assertEquals(3,
            ReflectionUtil.invokeMethod("foo", "length"));
    Assertions.assertThrows(NoSuchMethodException.class,
            () -> ReflectionUtil.invokeMethod(new String(), "size"));
}