}
private static void checkContentBuffer(HttpMessage aggregatedMessage) {
CompositeChannelBuffer buffer = (CompositeChannelBuffer) aggregatedMessage.getContent();
assertEquals(2, buffer.numComponents());
List<ChannelBuffer> buffers = buffer.decompose(0, buffer.capacity());
assertEquals(2, buffers.size());
for (ChannelBuffer buf: buffers) {
// This should be false as we decompose the buffer before to not have deep hierarchy
assertFalse(buf instanceof CompositeChannelBuffer);
}