Why making a real object here? How about just `Mockito.mock(Github.class)`. The same for the other method