@Test
public void testDivineDeflateParameters_NoMarkInputStreamFactory() throws IOException {

  final JreDeflateParameters parameters = JreDeflateParameters.of(1, 0, true);
  final byte[] buffer = deflate(parameters);
  try {
    // The factory here will NOT support mark(int), which should cause failure. Also, throw
    // exceptions on close() to be extra rude.
    diviner.divineDeflateParameters(new ByteArrayInputStreamFactory(buffer, false, true));
    Assert.fail("operating without a markable stream");
  } catch (IllegalArgumentException expected) {
    // Correct!
  }
}