@Test
public void encode() throws Exception {

    ArrayList<Object> out = new ArrayList<>();
    SUT.encode(channelHandlerContextMock, Unpooled.wrappedBuffer(amsPacketBytes), out);
    assertEquals(1, out.size());
    assertThat(out, hasSize(1));
}