public static Optional<String> getDatabaseName(final String nodePath) {
        Pattern pattern = Pattern.compile(getRootNodePath() + "/(\\w+)$", Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(nodePath);
        return matcher.find() ? Optional.of(matcher.group(1)) : Optional.empty();
    }
@Test
    void assertGetDatabaseNameWhenNotFound() {
        Optional<String> actual = ListenerAssistedNodePath.getDatabaseName("/invalid/foo_db");
        assertFalse(actual.isPresent());
    }