@Test
	public void testClassOfObjectWrittenToFile() throws IOException{
		cm.addFutureMeeting(contacts, new GregorianCalendar(2015,3,2));
		cm.addNewPastMeeting(contacts, new GregorianCalendar(2013,5,3), "meeting");
		ObjectInputStream ois = new ObjectInputStream(new FileInputStream("contacts.txt"));
		List inputData = null;
		try {
			inputData = (ArrayList) ois.readObject();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

		assertTrue(inputData.get(0).getClass().equals(inputData.getClass())); //check that the object is a List
	}