@Test
public void listFilesTest() throws Exception {

    List<String> fileList = ResourceUtil.list(Test.class, "/junit/framework");
    Assert.assertTrue(fileList.contains("Test.class"));
    fileList = ResourceUtil.list(Test.class, "/junit/framework/");
    Assert.assertTrue(fileList.contains("Test.class"));
    fileList = ResourceUtil.list(Test.class, "junit/framework/");
    Assert.assertTrue(fileList.contains("Test.class"));
    fileList = ResourceUtil.list(Test.class, "junit/framework/");
    Assert.assertTrue(fileList.contains("Test.class"));
}