public void run() {
    try {
      InputStreamReader isr = new InputStreamReader( this.is );
      BufferedReader br = new BufferedReader( isr );
      String line = null;
      while ( ( line = br.readLine() ) != null ) {
        String logEntry = this.type + " " + line;
        switch ( this.logLevel ) {
          case MINIMAL:
            log.logMinimal( logEntry );
            break;
          case BASIC:
            log.logBasic( logEntry );
            break;
          case DETAILED:
            log.logDetailed( logEntry );
            break;
          case DEBUG:
            log.logDebug( logEntry );
            break;
          case ROWLEVEL:
            log.logRowlevel( logEntry );
            break;
          case ERROR:
            log.logError( logEntry );
            break;
          default: // NONE
            break;
        }
      }
    } catch ( IOException ioe ) {
      if ( log.isError() ) {
        log.logError( this.type + " " + Const.getStackTracker( ioe ) );
      }
    }
  }
@Test
  public void testLogBasic() {
    streamLogger = new ConfigurableStreamLogger( log, is, LogLevel.BASIC, PREFIX );
    streamLogger.run();

    Mockito.verify( log ).logBasic( OUT1 );
    Mockito.verify( log ).logBasic( OUT2 );
  }