mockito given do nothing code example Example: java doreturn void doNothing().when(yourMock).yourMockedMethod();