ResetResponseHandler implements ResponseHandler { @Override public final void onRecord( Value[] fields ) { throw new UnsupportedOperationException(); } ResetResponseHandler( InboundMessageDispatcher messageDispatcher );  ResetResponseHandler( InboundMessageDispatcher messageDispatcher, CompletableFuture<Void> completionFuture ); @Override final void onSuccess( Map<String,Value> metadata ); @Override final void onFailure( Throwable error ); @Override final void onRecord( Value[] fields );  }
@Test void shouldThrowWhenOnRecord() { ResetResponseHandler handler = newHandler( new CompletableFuture<>() ); assertThrows( UnsupportedOperationException.class, () -> handler.onRecord( values( 1, 2, 3 ) ) ); }