//given
IMethods mock = mock(IMethods.class);
ArgumentCaptor<Integer> argument = ArgumentCaptor.forClass(Integer.class);
//when
mock.intArgumentMethod(10);
//then
verify(mock).intArgumentMethod(argument.capture());
assertEquals(10, (int) argument.getValue());
}