MySQLEofPacket implements MySQLPacket { @Override public void write(final MySQLPacketPayload payload) { payload.writeInt1(HEADER); payload.writeInt2(warnings); payload.writeInt2(statusFlags); } MySQLEofPacket(final int sequenceId);  MySQLEofPacket(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload); static final int HEADER; }
@Test public void assertWrite() { new MySQLEofPacket(1).write(payload); verify(payload).writeInt1(MySQLEofPacket.HEADER); verify(payload).writeInt2(0); verify(payload).writeInt2(MySQLStatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue()); }