  @Test
  void writeLossyTiledCustomQuality() throws Exception {

    // = opj_compress -I -r 10 -t 128,128
    OpenJp2ImageWriteParam param = (OpenJp2ImageWriteParam) writer.getDefaultWriteParam();
    param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    param.setCompressionQuality(0.9f);
    param.setTilingMode(ImageWriteParam.MODE_EXPLICIT);
    param.setTiling(128, 128, 0, 0);
    compressAndCompare("lenna_tiled_lossy_r10.jp2", param);
  }