### Question:
OxmMplsBosSerializer extends AbstractOxmMatchEntrySerializer { @Override public void serialize(MatchEntry entry, ByteBuf outBuffer) { super.serialize(entry, outBuffer); MplsBosCase entryValue = (MplsBosCase) entry.getMatchEntryValue(); outBuffer.writeBoolean(entryValue.getMplsBos().isBos().booleanValue()); }  @Override void serialize(MatchEntry entry, ByteBuf outBuffer);  }### Answer:
@Test public void testSerialize() { MatchEntryBuilder builder = prepareMplsBosMatchEntry(true); ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer(); serializer.serialize(builder.build(), buffer); checkHeader(buffer, false); assertEquals("Wrong value", 1, buffer.readUnsignedByte()); assertTrue("Unexpected data", buffer.readableBytes() == 0); }