how to handle methods on mocked objects that returns void code example Example: java doreturn void doNothing().when(yourMock).yourMockedMethod();