MySQLTinyBinlogProtocolValue implements MySQLBinlogProtocolValue { @Override public Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload) { return payload.readInt1(); }  @Override Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload);  }
@Test public void assertRead() { when(payload.readInt1()).thenReturn(1); MySQLTinyBinlogProtocolValue actual = new MySQLTinyBinlogProtocolValue(); assertThat(actual.read(columnDef, payload), is(1)); }