@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( expected = IllegalArgumentException.class )
  public void testGetConnectionRootFileNameThrowsIllegalArgumentGivenConnectionHasNullName() {
    when( vfsConnectionDetails.getName() ).thenReturn( null );
    vfsConnectionManagerHelper.getConnectionRootFileName( vfsConnectionDetails );
  }