public <T extends ConnectionProvider<?>> List<String> getNamesByType( Class<T> providerClass ) {
    List<String> detailNames = new ArrayList<>();

    for ( ConnectionProvider<? extends ConnectionDetails> provider : getProvidersByType( providerClass ) ) {
      List<String> names = getNames( provider );
      if ( names != null) {
        detailNames.addAll( names );
      }
    }

    return detailNames;
  }
@Test
  public void testGetNamesByType() {
    addOne();

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