private List<String> getNames( IMetaStore metaStore, ConnectionProvider<? extends ConnectionDetails> provider ) {
    try {
      return getMetaStoreFactory( metaStore, provider.getClassType() ).getElementNames();
    } catch ( MetaStoreException mse ) {
      logger.error( "Error calling metastore getElementNames()", mse );
      return Collections.emptyList();
    }
  }
@Test
  public void testGetNames() {
    addOne();

    List<String> names = connectionManager.getNames();
    assertEquals( 1, names.size() );
    assertEquals( CONNECTION_NAME, names.get( 0 ) );
  }