@Test
  public void testSaveCard() throws IOException {
    List<Card> cards = cardDao.getCardList();

    Card card = cards.get(0);
    String pin = card.getPin();
    card.setPin("7779");
    cardDao.saveCard(card);

    List<Card> updatedProducts = cardDao.getCardList();
    Card card2 = updatedProducts.get(0);
    assertTrue(card2.getPin().equals("7779"));

    //      	card2.setPin(pin);
    //        cardDao.saveCard(card2);
  }
 @Test
 public void testGetCardsList() {
   List<Card> cards = cardDao.getCardList();
   assertEquals(cards.size(), 1, 0);
 }