@Test
public void testSize() {

    final TokenList list1 = new TokenList();
    Assert.assertEquals(0, list1.size());
    list1.add(TOKEN1);
    Assert.assertEquals(1, list1.size());
    list1.add(TOKEN2);
    Assert.assertEquals(2, list1.size());
    final TokenList list2 = new TokenList(TOKEN_LIST);
    Assert.assertEquals(TOKEN_LIST_SIZE, list2.size());
    final TokenList list3 = new TokenList("");
    Assert.assertEquals(0, list3.size());
    final TokenList list4 = new TokenList(null);
    Assert.assertEquals(0, list4.size());
}