IOUtils.writeString("6", def1);
def1.close();
byte[] b = out.toByteArray();
FastByteArrayInputStream in = new FastByteArrayInputStream(b);
InflaterInputStream inf1 = new InflaterInputStream(in, new Inflater(false), 8192);
Assert.assertEquals("1", IOUtils.readString(inf1));
Assert.assertEquals(2, IOUtils.readInt(inf1));
Assert.assertEquals("3", IOUtils.readString(inf1));
Assert.assertEquals("4", IOUtils.readString(inf1));
Assert.assertEquals("5", IOUtils.readString(inf1));
Assert.assertEquals("6", IOUtils.readString(inf1));
Assert.assertEquals(1, inf1.available());
Assert.assertEquals(-1, inf1.read());
Assert.assertEquals(0, inf1.available());
}