    @Test
    public void testGetTracerWithRulesEnabled() {

        System.setProperty("io.opentracing.contrib.agent.allowInstrumentedTracer", "true");
        try {
            OpenTracingHelper helper = new OpenTracingHelper(null);
            Tracer tracer = helper.getTracer();

            assertNotNull(tracer);

            tracer.buildSpan("test2");
        } catch(DummyTracer.DummyCalled e) {
            assertTrue(e.triggeringEnabled);
            return;
        } finally {
            System.clearProperty("io.opentracing.contrib.agent.allowInstrumentedTracer");
        }
        fail("DummyTracer did not initialize properly");
    }