### Question:
OF10QueueGetConfigInputMessageFactory implements OFSerializer<GetQueueConfigInput> { @Override public void serialize(GetQueueConfigInput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); outBuffer.writeShort(message.getPort().getValue().intValue()); outBuffer.writeZero(PADDING_IN_GET_QUEUE_CONFIG_MESSAGE); ByteBufUtils.updateOFHeaderLength(outBuffer); }  @Override void serialize(GetQueueConfigInput message, ByteBuf outBuffer);  }### Answer:
@Test public void test() throws Exception { GetQueueConfigInputBuilder builder = new GetQueueConfigInputBuilder(); BufferHelper.setupHeader(builder, EncodeConstants.OF10_VERSION_ID); builder.setPort(new PortNumber(6653L)); GetQueueConfigInput message = builder.build(); ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer(); queueFactory.serialize(message, out); BufferHelper.checkHeaderV10(out, (byte) 20, 12); Assert.assertEquals("Wrong port", 6653L, out.readUnsignedShort()); out.skipBytes(2); }