/** To test if deleting the last node */
 @Test
 public void testDeleteLast() {
   // delete the last node
   filledTest.deleteLast();
   twoTest.deleteLast();
   oneTest.deleteLast();
   emptyTest.deleteLast();
   // the test should check that the last element was deleted
   assertEquals("testStrin", filledTest.toString());
   assertEquals("t", twoTest.toString());
   assertEquals("", oneTest.toString());
   assertEquals("", emptyTest.toString());
 }
 /** To test if deleting the node following the current node */
 @Test
 public void testDeleteNext() {
   // delete the node after the current node
   filledTest.deleteNext(filledTest.getFirstNode());
   // the e should have been deleted
   assertEquals("tstString", filledTest.toString());
 }
 /** To test if deleting the first node */
 @Test
 public void testDeleteFirst() {
   // delete the first node
   filledTest.deleteFirst();
   // the first letter should have been deleted
   assertEquals("estString", filledTest.toString());
 }