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