### Question:
OF10BarrierInputMessageFactory implements OFSerializer<BarrierInput> { @Override public void serialize(BarrierInput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.OFHEADER_SIZE); }  @Override void serialize(BarrierInput message, ByteBuf outBuffer);  }### Answer:
@Test public void test() throws Exception { BarrierInputBuilder bib = new BarrierInputBuilder(); BufferHelper.setupHeader(bib, EncodeConstants.OF10_VERSION_ID); BarrierInput bi = bib.build(); ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer(); barrierFactory.serialize(bi, out); BufferHelper.checkHeaderV10(out, (byte) 18, 8); }