@@ -0,0 +1,380 @@
+package it.rz.algoritmi;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport java.util.LinkedList;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Apublic class MiddleOfLinkedListTest %7B%0D%0A%0D%0A%09@Test%0D%0A%09public void theMiddleOfAnEmptyListIsNull() %7B%0D%0A%09%09LinkedList%3CObject%3E emptyList = new LinkedList%3CObject%3E();%0D%0A%09%09%0D%0A%09%09Object actual = MiddleOfLinkedList.findMiddle(emptyList);%0D%0A%09%09%0D%0A%09%09assertNull(actual);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

tested that the middle of an empty list is null