InvocationContext { public Method getMethod() { return method; } InvocationContext(Method method, Object[] parameters); Method getMethod(); Object[] getParameters(); @Override String toString();  }
@Test public void testGetMethod() throws NoSuchMethodException { System.out.println("getMethod"); Method method = this.getClass().getMethod("testGetMethod"); Object[] parameters = new Object[] {"FOO1", "FOO2"}; InvocationContext instance = new InvocationContext(method, parameters); Method result = instance.getMethod(); assertThat(result).isEqualTo(method); }