@Test
public void testAsJavaUtilCollection() {

    assertEquals(true, ACollectionHelper.asJavaUtilCollection(new ArrayList<>()           ).isEmpty());
    assertEquals(true, ACollectionHelper.asJavaUtilCollection(new ArrayList<>().iterator()).isEmpty());
    assertEquals(true, ACollectionHelper.asJavaUtilCollection(new Iterable<String>() {
        @Override public Iterator<String> iterator() {
            return new Iterator<String>() {
                @Override public boolean hasNext() {
                    return false;
                }
                @Override public String next() {
                    return null;
                }
                @Override public void remove() {
                }
            };
        }
    }).isEmpty());
    assertEquals(Arrays.asList("a"), ACollectionHelper.asJavaUtilCollection(Arrays.asList("a")           ));
    assertEquals(Arrays.asList("a"), ACollectionHelper.asJavaUtilCollection (Arrays.asList ("a").iterator ()));
    assertEquals(Arrays.asList("a", "b"), ACollectionHelper.asJavaUtilCollection (Arrays.asList ("a", "b")));
    assertEquals(Arrays.asList("a", "b"), ACollectionHelper.asJavaUtilCollection (Arrays.asList ("a", "b").iterator ()));
}