@Test
public void fragmentedDecode() throws Exception {

    ArrayList<Object> out = new ArrayList<>();
    ByteBuf byteBuf = amsTCPPacket.getByteBuf();
    SUT.decode(channelHandlerContextMock, byteBuf.readBytes(byteBuf.readableBytes() - 2), out);
    assertThat(out, hasSize(0));
    SUT.decode(channelHandlerContextMock, byteBuf, out);
    assertThat(out, hasSize(1));
    byteBuf.release();
}