public ConnectionDetails createConnectionDetails( String scheme ) {
    try {
      ConnectionProvider<? extends ConnectionDetails> provider = connectionProviders.get( scheme );
      return provider.getClassType().newInstance();
    } catch ( Exception e ) {
      logger.error( "Error in createConnectionDetails {}", scheme, e );
      return null;
    }
  }
@Test
  public void testCreateConnectionDetailsNull() {
    addProvider();
    Assert.assertNull( connectionManager.createConnectionDetails( DOES_NOT_EXIST ) );
  }