mockito expect void method noraml execution code example Example: java doreturn void doNothing().when(yourMock).yourMockedMethod();