@@ -0,0 +1,562 @@
+package net.franckbenault.testcollection;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0A%0Apublic class ListTestCase %7B%0A%0A%09%0A%09@Test%0A%09public void testEmptyList() %7B%0A%09%09%0A%09%09List%3CString%3E strings = Collections.emptyList();%0A%09%09%0A%09%09assertTrue(strings.isEmpty());%0A%0A%09%7D%0A%09%0A%09@Test(expected=UnsupportedOperationException.class)%0A%09public void testEmptyList_UnsupportedOperationException() %7B%0A%09%09%0A%09%09List%3CString%3E strings = Collections.emptyList();%0A%09%09%0A%09%09assertTrue(strings.isEmpty());%0A%09%09%0A%09%09strings.add(%22foo%22);%0A%09%7D%0A%7D%0A

add Collections.emptyList example