public static Path resolveRealPath(Path path) {
        try {
            // Get the real path by resolving all relative paths and symbolic links.
            return path.toRealPath();
        } catch (IOException e) {
            LOG.error("Could not resolve real location of path [{}].", path, e);
        }
        return null;
    }
@Test
    public void realPathNullWhenDoesNotExist() {
        final Path path = Paths.get("non-existent-file-path");
        assertNull(AllowedAuxiliaryPathChecker.resolveRealPath(path));
    }