public boolean isPathValid(String path) {
        return path == null || XmlUtils.matchUsingRegex(PATH_PATTERN_REGEX, path);
    }
@Test
    public void shouldConsiderNullAsValidPath() { //because attributes of filePathType in xsd are all optional
        assertThat(filePathTypeValidator.isPathValid(null), is(true));
    }