modify a wrong use of mockito