### Question:
ColCount extends Packet { public static ColCount loadFromPacket(byte[] packet) { ColCount obj = new ColCount(); Proto proto = new Proto(packet, 3); obj.sequenceId = proto.get_fixed_int(1); obj.colCount = proto.get_lenenc_int(); return obj; }  ArrayList<byte[]> getPayload(); static ColCount loadFromPacket(byte[] packet); public long colCount; }### Answer:
@Test public void test1() { byte[] packet = new byte[] {(byte) 0x01, (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x05}; ColCount colcount = ColCount.loadFromPacket(packet); assertArrayEquals(packet, colcount.toPacket()); assertEquals(colcount.colCount, 5); assertEquals(colcount.sequenceId, 1); }