SamplerFunctions { public static <T> SamplerFunction<T> neverSample() { return (SamplerFunction<T>) Constants.NEVER_SAMPLE; }  static SamplerFunction<T> nullSafe(SamplerFunction<T> delegate); static SamplerFunction<T> deferDecision(); static SamplerFunction<T> neverSample();  }
@Test public void neverSample_returnsFalse() { assertThat(neverSample().trySample(null)).isFalse(); assertThat(neverSample().trySample("1")).isFalse(); }