MySQLInt2BinaryProtocolValue implements MySQLBinaryProtocolValue { @Override public void write(final MySQLPacketPayload payload, final Object value) { payload.writeInt2((Integer) value); }  @Override Object read(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload, final Object value);  }
@Test public void assertWrite() { new MySQLInt2BinaryProtocolValue().write(payload, 1); verify(payload).writeInt2(1); }