replace custom spy with mockito