@Test
    public void testReadObject() {
        String fileName = "test/filehandling/testcardlist.dat";
        Object readObject = reader.readObject(fileName);

        assertNotNull("The reading failed!", readObject);

        List<Card> expectedList = new ArrayList<Card>();
        expectedList.add(new Card(Suit.CLUB, Rank.ACE));
        expectedList.add(new Card(Suit.SPADE, Rank.TEN));        
        
        List<Card> readCards = null;
        try {
            readCards = (List<Card>) readObject;
        } catch (ClassCastException e) {
            fail("The read object was of the wrong type.");
        }
        
        assertEquals("The list didn't equal the expected list",expectedList, readCards);
    }