### Question:
OpenTelemetry { public static BaggageManager getBaggageManager() { return getInstance().contextManager; } private  OpenTelemetry(); static TracerProvider getTracerProvider(); static Tracer getTracer(String instrumentationName); static Tracer getTracer(String instrumentationName, String instrumentationVersion); static MeterProvider getMeterProvider(); static Meter getMeter(String instrumentationName); static Meter getMeter(String instrumentationName, String instrumentationVersion); static BaggageManager getBaggageManager(); static ContextPropagators getPropagators(); static void setPropagators(ContextPropagators propagators);  }### Answer:
@Test void testBaggageManagerLoadArbitrary() throws IOException { File serviceFile = createService( BaggageManagerFactory.class, FirstBaggageManager.class, SecondBaggageManager.class); try { assertTrue( (OpenTelemetry.getBaggageManager() instanceof FirstBaggageManager) || (OpenTelemetry.getBaggageManager() instanceof SecondBaggageManager)); assertThat(OpenTelemetry.getBaggageManager()).isEqualTo(OpenTelemetry.getBaggageManager()); } finally { serviceFile.delete(); } }
@Test void testBaggageManagerSystemProperty() throws IOException { File serviceFile = createService( BaggageManagerFactory.class, FirstBaggageManager.class, SecondBaggageManager.class); System.setProperty(BaggageManagerFactory.class.getName(), SecondBaggageManager.class.getName()); try { assertThat(OpenTelemetry.getBaggageManager()).isInstanceOf(SecondBaggageManager.class); assertThat(OpenTelemetry.getBaggageManager()).isEqualTo(OpenTelemetry.getBaggageManager()); } finally { serviceFile.delete(); } }
@Test void testBaggageManagerNotFound() { System.setProperty(BaggageManagerFactory.class.getName(), "io.does.not.exists"); assertThrows(IllegalStateException.class, () -> OpenTelemetry.getBaggageManager()); }