public void registerUrl( String urlString ) {
    if ( urlString == null || addedAllClusters == true ) {
      return; //We got no url or already added all clusters so nothing to do.
    }
    if ( urlString.startsWith( VARIABLE_START ) ) {
      addAllClusters();
    }

    Pattern r = Pattern.compile( URL_PATTERN );
    Matcher m = r.matcher( urlString );
    if ( m.find() ) {
      String protocol = m.group( PARSE_URL_SCHEME );
      String clusterName = m.group( PARSE_URL_AUTHORITY );
      if ( "hc".equals( protocol ) ) {
        if ( clusterName.startsWith( VARIABLE_START ) ) {
          addAllClusters();
        }
        addClusterToMeta( clusterName );
      }
    }
  }
@Test
  public void testRegisterUrlRegularFile() throws Exception {
    namedClusterEmbedManager.registerUrl( "/" + CLUSTER1_NAME + "/dir1/dir2" );
    verify( mockMetaStoreFactory, never() ).saveElement( any() );
  }