GetUserCard { public void get(Callback callback) { Card userCard = this.database.getUserCard(); callback.onGetUserCard(userCard); } @Inject  GetUserCard(Database database); void get(Callback callback);  }
@Test public void testGet() { Card card = new Card(); when(database.getUserCard()).thenReturn(card); getUserCard.get(callback); verify(callback).onGetUserCard(eq(card)); }