@Override
    public boolean addClass(final Class<?> stepClass) {
        if (stepClasses.contains(stepClass)) {
            return true;
        }
        if (injectorSourceFromProperty == null) {
            if (hasInjectorSource(stepClass)) {
                checkOnlyOneClassHasInjectorSource(stepClass);
                withInjectorSource = stepClass;
                // Eager init to allow for static binding prior to before all
                // hooks
                injector = instantiateUserSpecifiedInjectorSource(withInjectorSource).getInjector();
            }
        }
        stepClasses.add(stepClass);
        return true;
    }
@Test
    void shouldInjectStaticBeforeStart() {
        factory = new GuiceFactory();
        WithStaticFieldClass.property = null;
        factory.addClass(CucumberInjector.class);
        assertThat(WithStaticFieldClass.property, equalTo("Hello world"));

    }