@Test
public void testBeginSubsegmentWhenMissingContext() {

    AWSXRayRecorder recorder = AWSXRayRecorderBuilder.standard()
                                                     .withContextMissingStrategy(new IgnoreErrorContextMissingStrategy())
                                                     .build();
    Subsegment subsegment = recorder.beginSubsegment("hello");
    assertThat(subsegment).isNotNull();
    assertThat(subsegment.getNamespace()).isEmpty();
    // No-op
    subsegment.setNamespace("foo");
    assertThat(subsegment.getNamespace()).isEmpty();
}