@Test
public void testAssertFileExists() {

    FileSystemUtil.assertFileOrResourceExists("build.gradle");
    try {
        FileSystemUtil.assertFileOrResourceExists("/not/existing/file");
        fail("IllegalArgumentException expected");
    } catch(IllegalArgumentException e) {
        assertThat(e.getMessage(), startsWith("File not found: "));
    }
}