@Test
	public void popBackTest() {
		DoubleLinkedList l = new DoubleLinkedList();
		DoubleLinkedList l1 = new DoubleLinkedList();
		try {
			l.pushFront(1);
			l.pushFront(2);
			l.pushBack(3);

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

		try {
			l.popBack();
		} catch (InvalidAccessException e) {
			// expected
		} catch (Exception e) {
			fail("Unexpected Exception");
		}
		try {
			l1.popBack();
		} catch (InvalidAccessException e) {
			// expected
		} catch (Exception e) {
			fail("Unexpected Exception");
		}
	}