public ConnectionDetails getConnectionDetails( IMetaStore metaStore, String key, String name ) {
    ConnectionProvider<? extends ConnectionDetails> connectionProvider = getConnectionProvider( key );
    if ( connectionProvider != null ) {
      Class<? extends ConnectionDetails> clazz = connectionProvider.getClassType();
      return loadElement( getMetaStoreFactory( metaStore, clazz ), name );
    }
    return null;
  }
@Test
  public void testBaRolesNotNull() {
    addOne();
    TestConnectionWithBucketsDetails connectionDetails =
      (TestConnectionWithBucketsDetails) connectionManager.getConnectionDetails( CONNECTION_NAME );
    assertNotNull( connectionDetails );
    assertNotNull( connectionDetails.getBaRoles() );
  }