mockito for test/model dao/optimising index