@Test
public void testBeginSegmentWhenMissingContext() {

    AWSXRayRecorder recorder = AWSXRayRecorderBuilder.standard()
                                                     .withSegmentContextResolverChain(new SegmentContextResolverChain())
                                                     .withContextMissingStrategy(new IgnoreErrorContextMissingStrategy())
                                                     .build();
    Segment segment = recorder.beginSegment("hello");
    assertThat(segment).isNotNull();
    assertThat(segment.getNamespace()).isEmpty();
    // No-op
    segment.setNamespace("foo");
    assertThat(segment.getNamespace()).isEmpty();
}