JdbcMethodInvocation { @SneakyThrows(ReflectiveOperationException.class) public void invoke(final Object target) { method.invoke(target, arguments); }  @SneakyThrows(ReflectiveOperationException.class) void invoke(final Object target);  }
@Test public void assertInvokeSuccess() throws NoSuchMethodException { JdbcMethodInvocation actual = new JdbcMethodInvocation(String.class.getMethod("length"), new Object[] {}); actual.invoke(""); }
@Test(expected = IllegalAccessException.class) public void assertInvokeFailure() throws NoSuchMethodException { JdbcMethodInvocation actual = new JdbcMethodInvocation(String.class.getDeclaredMethod("indexOfSupplementary", int.class, int.class), new Object[] {1, 1}); actual.invoke(""); }