Use a ByteArrayOutputStream to capture these channels and verify their contents.