### Question:
SetParameterMethodInvocation extends JdbcMethodInvocation { public void changeValueArgument(final Object value) { getArguments()[1] = value; } SetParameterMethodInvocation(final Method method, final Object[] arguments, final Object value); void changeValueArgument(final Object value);  }### Answer:
@Test public void assertChangeValueArgument() throws NoSuchMethodException, SecurityException { SetParameterMethodInvocation actual = new SetParameterMethodInvocation(PreparedStatement.class.getMethod("setInt", int.class, int.class), new Object[] {1, 100}, 100); actual.changeValueArgument(200); assertThat(actual.getArguments()[1], is((Object) 200)); }
@Test public void assertChangeValueArgument() throws NoSuchMethodException { SetParameterMethodInvocation actual = new SetParameterMethodInvocation(PreparedStatement.class.getMethod("setInt", int.class, int.class), new Object[] {1, 100}, 100); actual.changeValueArgument(200); assertThat(actual.getArguments()[1], is(200)); }