@Deprecated
    static Class<?> loadInjectorSourceFromProperties(Map<String, String> properties) {
        String injectorSourceClassName = properties.get(GUICE_INJECTOR_SOURCE_KEY);

        if (injectorSourceClassName == null) {
            return null;
        }

        log.warn(
            () -> format("The '%s' property has been deprecated." +
                    "Add a class implementing '%s' on the glue path instead",
                GUICE_INJECTOR_SOURCE_KEY, InjectorSource.class.getName()));

        try {
            return Class.forName(injectorSourceClassName, true, Thread.currentThread().getContextClassLoader());
        } catch (Exception e) {
            String message = format("Instantiation of '%s' failed. Check the caused by exception and ensure your " +
                    "InjectorSource implementation is accessible and has a public zero args constructor.",
                injectorSourceClassName);
            throw new InjectorSourceInstantiationFailed(message, e);
        }
    }
@Test
    void instantiatesInjectorSourceByFullyQualifiedName() {
        Map<String, String> properties = new HashMap<>();
        properties.put(GUICE_INJECTOR_SOURCE_KEY, CustomInjectorSource.class.getName());

        Class<?> aClass = InjectorSourceFactory.loadInjectorSourceFromProperties(properties);
        assertThat(aClass, is(CustomInjectorSource.class));
    }