@Test
public void testCons() {

    AList<String> l0 = AList.nil();
    final AList<String> l1 = l0.cons("a");
    final AList<String> l2 = l0.cons("x").cons("y");
    assertEquals(1, l1.size());
    assertEquals(2, l2.size());
    assertEquals(Arrays.<String>asList(), l0.asJavaUtilList());
    assertEquals(Arrays.asList("a"),      l1.asJavaUtilList());
    assertEquals(Arrays.asList("y", "x"),  l2.asJavaUtilList());
}