@Test
public void testFirstEntry() {

    final List<Integer> nullList = null;
    final List<Integer> listWithoutEntries = new ArrayList<Integer>();
    final List<Integer> listWithOneEntry = Arrays.asList(1);
    final List<Integer> listWithTwoEntries = Arrays.asList(1, 2);
    assertThat(Lists.firstEntry(nullList), is(nullValue()));
    assertThat(Lists.firstEntry(listWithoutEntries), is(nullValue()));
    assertThat(Lists.firstEntry(listWithOneEntry), is(1));
    assertThat(Lists.firstEntry(listWithTwoEntries), is(1));
}