void () { Object element = Collections.emptyList(); JBIterable<Object> iterable = JBIterable.of(element); assertFalse(iterable.isEmpty()); assertEquals(1, iterable.size()); assertEquals(element, iterable.first()); assertEquals(element, iterable.last()); assertEquals(element, iterable.get(0)); assertNull(iterable.get(1)); assertTrue(iterable.contains(element)); assertFalse(iterable.contains(null)); assertEquals("[[]]", iterable.toList().toString()); assertEquals("[[]]", iterable.toSet().toString()); assertEquals("[[]]", Arrays.asList(iterable.toArray(new Object[0])).toString()); assertEquals("[[]]", iterable.addAllTo(new ArrayListSet<>()).toString()); }