### Question:
Samplers { static boolean isRecording(Decision decision) { return Decision.RECORD_ONLY.equals(decision) || Decision.RECORD_AND_SAMPLE.equals(decision); } private  Samplers(); static SamplingResult samplingResult(Decision decision, Attributes attributes); static SamplingResult emptySamplingResult(Decision decision); static Sampler alwaysOn(); static Sampler alwaysOff(); static Sampler parentBased(Sampler root); static ParentBased.Builder parentBasedBuilder(Sampler root); static Sampler traceIdRatioBased(double ratio);  }### Answer:
@Test void isRecording() { assertThat(Samplers.isRecording(Decision.DROP)).isFalse(); assertThat(Samplers.isRecording(Decision.RECORD_ONLY)).isTrue(); assertThat(Samplers.isRecording(Decision.RECORD_AND_SAMPLE)).isTrue(); }