fix Junit mockito deprecated warnings