@Test
public void testRegister() throws Exception {

    Registry registry = new Registry();
    TracerFormatRegistry.register(io.opentracing.propagation.Format.Builtin.BINARY, registry);
    Registry registry1 = (Registry) TracerFormatRegistry
        .getRegistry(io.opentracing.propagation.Format.Builtin.BINARY);
    assertTrue(registry == registry1);
    //Restore the registry affected by the test
    BinaryFormater binaryFormater = new BinaryFormater();
    TracerFormatRegistry.register(io.opentracing.propagation.Format.Builtin.BINARY,
        binaryFormater);
}