Latest version of mockito seems to have problem in our context. Will investigate later...