RunResponseHandler implements ResponseHandler { @Override public void onRecord( Value[] fields ) { throw new UnsupportedOperationException(); } RunResponseHandler( MetadataExtractor metadataExtractor );  RunResponseHandler( CompletableFuture<Throwable> runCompletedFuture, MetadataExtractor metadataExtractor ); @Override void onSuccess( Map<String,Value> metadata ); @Override void onFailure( Throwable error ); @Override void onRecord( Value[] fields ); QueryKeys queryKeys(); long resultAvailableAfter(); long queryId(); CompletableFuture<Throwable> runFuture();  }
@Test void shouldThrowOnRecord() { RunResponseHandler handler = newHandler(); assertThrows( UnsupportedOperationException.class, () -> handler.onRecord( values( "a", "b", "c" ) ) ); }