assertEquals("should recognize message", MessageDecoderResult.OK, decoder.decodable(null, buffer));  assertEquals("wrong decoder result", MessageDecoderResult.OK, decoder.decode(null, buffer, decoderOutput)); assertEquals("incorrect msg framing", data, decoderOutput.message.toString());
assertMessageFound(data, 1);
    private void assertMessageFound(String data) throws ProtocolViolationException {        assertEquals("should recognize message", MessageDecoderResult.OK, decoder.decodable(null,                buffer));        assertEquals("wrong decoder result", MessageDecoderResult.OK, decoder.decode(null, buffer,                decoderOutput));        assertEquals("incorrect msg framing", data, decoderOutput.message.toString());    }