@Test
	public void removeAt() {
		RandomAccessDoubleLinkedList test = new RandomAccessDoubleLinkedList();
		try {
			test.removeAt(2); // empty list

		} catch (InvalidAccessException e) {

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

		}
		try {
			test.insertAt(2, 3);
			test.insertAt(7, 2);
			test.insertAt(5, 3);
		} catch (Exception e) {
			fail("Unexpected Exception");

		}
		try {
			assertEquals(false, test.removeAt(-2)); // index smaller than 1 is
													// not
			fail("InvalidAccessException");
		} catch (InvalidAccessException e) {
			// possible
		} catch (Exception e) {
			fail("Unexpected Exception");
		}
		try {
			assertEquals(false, test.removeAt(8));
			fail("InvaidAccessExeption"); // index bigger than list is not
		} catch (InvalidAccessException e) {

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

		}
		try {
			assertEquals(true, test.removeAt(7));
			assertEquals(true, test.removeAt(2));
			assertEquals(false, test.removeAt(2));
			assertEquals(true, test.removeAt(4));

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

		}

	}