// get a element, if collection has only one element
  private static void testGetSingle() {
    Collection<String> collection = Lists.newArrayList("a3");
    OrderedIterable<String> orderedIterable = FastList.newListWith("a3");
    Iterable<String> iterable = collection;

    // get a element, if collection has only one element
    String guava = Iterables.getOnlyElement(iterable); // using guava
    String jdk = collection.iterator().next(); // using JDK
    String apache = CollectionUtils.extractSingleton(collection); // using Apache
    assert (orderedIterable.size() != 1); // using GS
    String gs = orderedIterable.getFirst();

    System.out.println(
        "single = " + jdk + ":" + guava + ":" + apache + ":" + gs); // print single = a3:a3:a3:a3
  }