MessagingRuleSampler implements SamplerFunction<MessagingRequest> { @Override public Boolean trySample(MessagingRequest request) { return delegate.trySample(request); } MessagingRuleSampler(ParameterizedSampler delegate); static Builder newBuilder(); @Override Boolean trySample(MessagingRequest request);  }
@Test public void nullOnNull() { assertThat(sampler.trySample(null)) .isNull(); }