Understanding the Mockito architecture