### Question:
RowsEvent { public void parsePostHeader(final ByteBuf in) { tableId = DataTypesCodec.readUnsignedInt6LE(in); flags = DataTypesCodec.readUnsignedInt2LE(in); if (EventTypes.WRITE_ROWS_EVENT_V2 <= binlogEventHeader.getTypeCode() && EventTypes.DELETE_ROWS_EVENT_V2 >= binlogEventHeader.getTypeCode()) { int extraDataLength = DataTypesCodec.readUnsignedInt2LE(in) - 2; DataTypesCodec.readBytes(extraDataLength, in); } } RowsEvent(final BinlogEventHeader binlogEventHeader); void parsePostHeader(final ByteBuf in); void parsePayload(final BinlogContext binlogContext, final ByteBuf in);  }### Answer:
@Test public void assertParsePostHeader() { binlogEventHeader.setTypeCode(EventTypes.WRITE_ROWS_EVENT_V2); ByteBuf postHeader = mock(ByteBuf.class); when(postHeader.readByte()).thenReturn((byte) 0x01); when(postHeader.readUnsignedShortLE()).thenReturn(2); RowsEvent actual = new RowsEvent(binlogEventHeader); actual.parsePostHeader(postHeader); assertThat(actual.getTableId(), is(0x010101010101L)); assertThat(actual.getFlags(), is(2)); verify(postHeader).readBytes(ArgumentMatchers.any(byte[].class), ArgumentMatchers.eq(0), ArgumentMatchers.eq(0)); }