# org.mockito.exceptions.misusing.UnfinishedVerificationException: Missing method call for verify(mock) here:

- **ID:** `java/mockito-void-method-stub`
- **Domain:** java
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Trying to stub a void method with when() instead of doNothing() or doThrow(), or verify syntax error.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 8+ | active | — | — |

## Workarounds

1. **Use doNothing() for void methods** (95% success)
   ```
   doNothing().when(mock).voidMethod();
   ```
2. **Use doThrow() for void methods** (90% success)
   ```
   doThrow(new RuntimeException()).when(mock).voidMethod();
   ```

## Dead Ends

- **Using when(mock.voidMethod()).thenReturn(value)** — void methods cannot return values; causes compilation or runtime error. (80% fail)
- **Using verify(mock) without method call** — verify requires a method call to verify. (70% fail)
