@Test
public void testGetAsArray() {

    assertThat(FileNameUtil.getAsList(null), hasSize(0));
    assertThat(FileNameUtil.getAsList(""), CoreMatchers.is(Lists.newArrayList("")));
    assertThat(FileNameUtil.getAsList(Lists.newArrayList("a", "b", "c")), CoreMatchers.is(Lists.newArrayList("a", "b", "c")));
    try {
        assertThat(FileNameUtil.getAsList(12L), nullValue());
        fail("IllegalArgumentException expected");
    } catch(IllegalArgumentException e) {
        assertThat(e.getMessage(), CoreMatchers.is("includes or excludes must be a String or a List<String> but is a class java.lang.Long"));
    }
}