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