MySQLBinaryResultSetRowPacket implements MySQLPacket { @Override public void write(final MySQLPacketPayload payload) { payload.writeInt1(PACKET_HEADER); writeNullBitmap(payload); writeValues(payload); }  @Override void write(final MySQLPacketPayload payload);  }
@Test public void assertWrite() { MySQLBinaryResultSetRowPacket actual = new MySQLBinaryResultSetRowPacket(1, Arrays.asList("value", null), Arrays.asList(MySQLColumnType.MYSQL_TYPE_STRING, MySQLColumnType.MYSQL_TYPE_STRING)); assertThat(actual.getSequenceId(), is(1)); actual.write(payload); verify(payload).writeInt1(0x00); verify(payload).writeInt1(0x08); verify(payload).writeStringLenenc("value"); }