decodeAndVerify(ch, slices[2], expectedEnvelopes);
Assert.assertEquals(refCount - 1, slices[2].refCnt());
}
// ref count should be 1, because slices shared the ref count
Assert.assertEquals(1, buf.refCnt());
}
@Test
public void testEncodeDecode() throws Exception {
final EmbeddedChannel ch = new EmbeddedChannel(