SaveUserCard { public void save(Card userCard, Callback callback) { userCard.setIsUser(true); database.saveCard(userCard); callback.onSaveUserCard(userCard); } @Inject  SaveUserCard(Database database); void save(Card userCard, Callback callback);  }
@Test public void testGet() { Card card = new Card(); saveUserCard.save(card, callback); verify(database).saveCard(eq(card)); verify(callback).onSaveUserCard(eq(card)); }