***
- It's especially useful when we can’t access the argument outside the method we’d like to test.
- We can use an _ArgumentCaptor_ with stubbing, we should generally avoid doing so.
- [Decreased Test Readability](https://www.baeldung.com/mockito-argumentcaptor#1-decreased-test-readability)
- [Reduced Defect Localization](https://www.baeldung.com/mockito-argumentcaptor#2-reduced-defectlocalization)
```java
@Captor
private ArgumentCaptor<Vehicle> vehicleCaptor
...
verify(vehicleRepository).save(vehicleCaptor.capture());
assertThat(vehicleCaptor.getValue()).isNotNull();
```
***
**References**:
- [Using Mockito ArgumentCaptor](https://www.baeldung.com/mockito-argumentcaptor)