public static String getValidFilePath(String inputPath) {
        return getValidFilePath(inputPath, false);
    }
@Test
    public void getValidFilePath_writeToTaskPath_throwsIllegalArgumentException() {
        boolean thrown = false;
        try {
            SecurityUtils.getValidFilePath("/var/task/test.txt", true);
        } catch (IllegalArgumentException e) {
            thrown = true;
        }
        if (!thrown) {
            fail("Did not throw exception");
        }

        try {
            SecurityUtils.getValidFilePath("file:///var/task/test.txt", true);
        } catch (IllegalArgumentException e) {
            return;
        }

        fail();
    }