### Question:
TableModInputMessageFactory implements OFSerializer<TableModInput> { @Override public void serialize(final TableModInput message, final ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); outBuffer.writeByte(message.getTableId().getValue().byteValue()); outBuffer.writeZero(PADDING_IN_TABLE_MOD_MESSAGE); outBuffer.writeInt(createConfigBitmask(message.getConfig())); ByteBufUtils.updateOFHeaderLength(outBuffer); }  @Override void serialize(final TableModInput message, final ByteBuf outBuffer);  }### Answer:
@Test public void testTableModInput() throws Exception { TableModInputBuilder builder = new TableModInputBuilder(); BufferHelper.setupHeader(builder, EncodeConstants.OF13_VERSION_ID); builder.setTableId(new TableId(9L)); builder.setConfig(new TableConfig(true)); TableModInput message = builder.build(); ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer(); tableModFactory.serialize(message, out); BufferHelper.checkHeaderV13(out, MESSAGE_TYPE, 16); Assert.assertEquals("Wrong TableID", message.getTableId().getValue().intValue(), out.readUnsignedByte()); out.skipBytes(PADDING_IN_TABLE_MOD_MESSAGE); Assert.assertEquals("Wrong TableConfig", 8, out.readUnsignedInt()); }