boolean isConnectedToRepository() {
    return this.repositoryUtility.isConnectedToRepository();
  }
@Test
  public void testIsConnectedToRepository() {

    //SETUP
    LogChannelInterface log = mock( LogChannelInterface.class );
    StringBuilder textVar = new StringBuilder();
    AbstractMeta meta = mock( AbstractMeta.class );
    ExtensionPointWrapper extensionPointWrapper = mock( ExtensionPointWrapper.class );
    SelectionAdapterOptions options = new SelectionAdapterOptions( SelectionOperation.FILE );

    // True case:
    RepositoryUtility repositoryUtilityTrue = mock( RepositoryUtility.class );
    when( repositoryUtilityTrue.isConnectedToRepository() ).thenReturn( true );

    SelectionAdapterFileDialog testInstance1 = createTestInstance( log, textVar, meta, options, repositoryUtilityTrue,
      extensionPointWrapper );

    assertTrue( testInstance1.isConnectedToRepository() );

    // False case:
    RepositoryUtility repositoryUtilityFalse = mock( RepositoryUtility.class );
    when( repositoryUtilityFalse.isConnectedToRepository() ).thenReturn( false );

    SelectionAdapterFileDialog testInstance2 = createTestInstance( log, textVar, meta, options, repositoryUtilityFalse,
      extensionPointWrapper );

    assertFalse( testInstance2.isConnectedToRepository() );
  }