@Test
public void testReadShort() {

    byte[] bytes = new byte[] {1, 2, 34, 45, 56};
    ByteBuf buf = Unpooled.wrappedBuffer(bytes);
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(buf);
    short s = compositeByteBuf.readShort();
    Assert.assertTrue(s == 258);
}