diff --git a/src/test/java/htsjdk/samtools/cram/RANSInteropTest.java b/src/test/java/htsjdk/samtools/cram/RANSInteropTest.java index b1c9d5a887..516464d7d8 100644 --- a/src/test/java/htsjdk/samtools/cram/RANSInteropTest.java +++ b/src/test/java/htsjdk/samtools/cram/RANSInteropTest.java @@ -163,6 +163,9 @@ public void testRANSRoundTrip( // by filtering out the embedded newlines, and then round trip through RANS and compare the // results final ByteBuffer uncompressedInteropBytes = ByteBuffer.wrap(filterEmbeddedNewlines(IOUtils.toByteArray(uncompressedInteropStream))); + final ByteBuffer compressedHtsjdkBytes = ransEncode.compress(uncompressedInteropBytes, params); + uncompressedInteropBytes.rewind(); + Assert.assertEquals(ransDecode.uncompress(compressedHtsjdkBytes), uncompressedInteropBytes); } }