mockito for testing abstract classes