@Test
    public void testParseTextToCards() {
        String toParse = "As, Kd";
        List<Card> parseTextToCards = new ArrayList<Card>();
        try {
            parseTextToCards = TextParser.parseTextToCards(toParse);
        } catch (ParseException ex) {
            fail("String " + toParse + " could not be parsed");
        }
        
        assertEquals(2, parseTextToCards.size());
        assertTrue(parseTextToCards.contains(new Card(Suit.SPADE, Rank.ACE)));
        assertTrue(parseTextToCards.contains(new Card(Suit.DIAMOND, Rank.KING)));
    }