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