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