@Test
	public void popFrontTest() {

		DoubleLinkedList l = new DoubleLinkedList();
		DoubleLinkedList l1 = new DoubleLinkedList();
		DoubleLinkedList other = new DoubleLinkedList();
		try {
			l.pushFront(1);
			l.pushBack(2);
			l.pushBack(3);

		} catch (Exception e) {
			fail("Unexpected Exception");

		}
		try {
			other = l.clone();

			l.pushFront(other);
			assertEquals(1, l.popFront());
			assertEquals(2, l.popFront());
			assertEquals(3, l.popFront());
			assertEquals(1, l.popFront());
			assertEquals(2, l.popFront());
			assertEquals(3, l.popFront());
		} catch (Exception e) {
			fail("Unexpected Exception");
		}

		try {
			l.popFront();
		} catch (InvalidAccessException e) {
			// expected

		} catch (Exception e) {
			fail("Unexpected Exception");

		}

		try {
			l1.popFront();

		} catch (InvalidAccessException e) {
			// expected
		} catch (Exception e) {
			fail("Unexpected Exception");

		}

	}