MySQLInt4BinaryProtocolValue implements MySQLBinaryProtocolValue { @Override public Object read(final MySQLPacketPayload payload) { return payload.readInt4(); }  @Override Object read(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload, final Object value);  }
@Test public void assertRead() { when(payload.readInt4()).thenReturn(1); assertThat(new MySQLInt4BinaryProtocolValue().read(payload), is(1)); }