@Test
	public void testGetCard(){
		Pile pile = new Pile();
		Card card = new Card(Card.CARD_SUIT.DIAMONDS, Card.FACE_VALUE.ACE);
		Card card2 = new Card(Card.CARD_SUIT.CLUBS, Card.FACE_VALUE.NINE);
		pile.addCard(card);
		pile.addCard(card2);
		assertEquals("Asserting the right card was retrieved", card2, pile.getCard(1));
		
		Pile pile2 = new Pile();
		
		boolean threwCorrectError = false;
		try {
			pile2.getCard(0);
		} catch(IndexOutOfBoundsException e){
			// Correct exception was caught.
			threwCorrectError = true;
		} catch (Exception e) {
			assertTrue("Unexpected exception.", false);
		} finally {
			assertTrue("Didn't throw any exception when should've.", threwCorrectError);
		}
		
	}