public RuntimeOptionsBuilder parse(Map<String, String> properties) {
        return parse(properties::get);
    }
@Test
    void should_throw_when_fails_to_parse() {
        properties.put(Constants.OBJECT_FACTORY_PROPERTY_NAME, "garbage");
        CucumberException exception = assertThrows(
            CucumberException.class,
            () -> cucumberPropertiesParser.parse(properties).build());
        assertThat(exception.getMessage(), equalTo("Failed to parse 'cucumber.object-factory' with value 'garbage'"));
    }