@Test
public void testEmptyToNull() {

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