@NonNull
  public ConnectionFileName getConnectionRootFileName( @NonNull VFSConnectionDetails details ) {

    String connectionName = details.getName();
    if ( StringUtils.isEmpty( connectionName ) ) {
      throw new IllegalArgumentException( "Unnamed connection" );
    }

    return new ConnectionFileName( connectionName );
  }
@Test
  public void testGetConnectionRootFileNameReturnsTheConnectionRoot() {

    String connectionNameWithNoReservedChars = "connection-name";
    when( vfsConnectionDetails.getName() ).thenReturn( connectionNameWithNoReservedChars );

    // pvfs://connection-name/
    ConnectionFileName fileName = vfsConnectionManagerHelper.getConnectionRootFileName( vfsConnectionDetails );
    assertEquals( ConnectionFileProvider.SCHEME, fileName.getScheme() );
    assertEquals( connectionNameWithNoReservedChars, fileName.getConnection() );
    assertEquals( ConnectionFileName.SEPARATOR, fileName.getPath() );
  }