public void delete( String file ) throws KettleJobException {
    try {
      channel.rm( file );
    } catch ( SftpException e ) {
      throw new KettleJobException( e );
    }
  }
@Test
  public void testReadKeyFile() throws Exception {
    FileObject pk = KettleVFS.createTempFile( "pk", KettleVFS.Suffix.TMP );
    try {
      byte[] pk_bytes = new byte[] { 1, 3, 1 };
      try ( OutputStream out = pk.getContent().getOutputStream() ) {
        out.write( pk_bytes );
      }

      // just call ctor
      spyClient( pk.getName().getPath() );
      verify( jSch ).addIdentity( username, pk_bytes, null, new byte[0] );
    } finally {
      pk.delete();
    }
  }