@Override
    public Number lookup(String name) {
        int t = dictionary.getOrDefault(name, -1);
        if (t < 0) {
            t = dictionary.getOrDefault("default", -1);
        }
        if (t < 0) {
            log.warn("Pick up system reserved threshold {}ms because of config missing", SYSTEM_RESERVED_THRESHOLD);
            return SYSTEM_RESERVED_THRESHOLD;
        }
        if (log.isDebugEnabled()) {
            log.debug("Apdex threshold of {} is {}ms", name, t);
        }
        return t;
    }
@Test
    public void testLookupOfBeforeInit() {
        ApdexThresholdConfig config = new ApdexThresholdConfig(provider);
        assertThat(config.lookup("foo")).isEqualTo(500);
        assertThat(config.lookup("default")).isEqualTo(500);
        assertThat(config.lookup("bar")).isEqualTo(500);
    }