@Override
  public boolean init( StepMetaInterface smi, StepDataInterface sdi ) {
    meta = (GetRepositoryNamesMeta) smi;
    data = (GetRepositoryNamesData) sdi;

    if ( super.init( smi, sdi ) ) {

      try {
        // Get the repository objects from the repository...
        //
        data.list = getRepositoryObjects();

      } catch ( Exception e ) {
        logError( "Error initializing step: ", e );
        return false;
      }

      data.rownr = 1L;
      data.filenr = 0;

      return true;
    }
    return false;
  }
@Test
  //PDI-16258
  public void testShowHidden() throws KettleException {
    IUser user = Mockito.mock( IUser.class );
    Mockito.when( user.isAdmin() ).thenReturn( true );
    Mockito.when( repoExtended.getUserInfo() ).thenReturn( user );
    init( repoExtended, "/", false, ".*", "", All, 0 );
    Mockito.verify( repoExtended, Mockito.never() )
      .loadRepositoryDirectoryTree( Mockito.anyString(), Mockito.anyString(), Mockito.anyInt(), Mockito.eq( false ),
        Mockito.anyBoolean(), anyBoolean() );

    Mockito.when( user.isAdmin() ).thenReturn( false );
    init( repoExtended, "/", false, ".*", "", All, 0 );
    Mockito.verify( repoExtended )
      .loadRepositoryDirectoryTree( Mockito.anyString(), Mockito.anyString(), Mockito.anyInt(), Mockito.eq( false ),
        Mockito.anyBoolean(), Mockito.anyBoolean() );
  }