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