@Test public void testSimple() { FortuneService fortuneService = mock(FortuneService.class); FortuneTeller fortuneTeller = mock(FortuneTeller.class); App app = new App(fortuneService, fortuneTeller); app.revealFortune(); verify(fortuneService).getFortune((FortuneService.Callback) Matchers.anyObject()); // verify(fortuneTeller).updateFortune((Fortune)anyObject()); // app.run(); }