Implemeting Test method with ArgumentCaptor