@Override
    public Class<? extends ObjectFactory> getObjectFactoryClass() {
        return configurationParameters
                .get(OBJECT_FACTORY_PROPERTY_NAME, ObjectFactoryParser::parseObjectFactory)
                .orElse(null);
    }
@Test
    void objectFactory() {
        ConfigurationParameters configurationParameters = new MapConfigurationParameters(
            Constants.OBJECT_FACTORY_PROPERTY_NAME,
            DefaultObjectFactory.class.getName());

        assertThat(new CucumberEngineOptions(configurationParameters).getObjectFactoryClass(),
            is(DefaultObjectFactory.class));
    }