Failing mockito test, how this should be done?