This is not recommended but a quick work around is to doReturn() instead of thenReturn
doReturn()
thenReturn