how to mock test empty methods code example Example: java doreturn void doNothing().when(yourMock).yourMockedMethod();