@Test
void testGetGlobalProperties_defaultValueWithValue() {

    AppConfig appConfig = getAppConfig();
    // simulate dropwiz setting a prop from the yaml
    String initialValue = appConfig.getPipelineConfig().getReferenceDataConfig().getLocalDir();
    String newValue = initialValue + "xxx";
    appConfig.getPipelineConfig().getReferenceDataConfig().setLocalDir(newValue);
    ConfigMapper configMapper = new ConfigMapper(appConfig);
    final Collection<ConfigProperty> configProperties = configMapper.getGlobalProperties();
    final ConfigProperty configProperty = configProperties.stream()
            .filter(confProp ->
                    confProp.getName()
                            .equalsIgnoreCase(PropertyPath.fromPathString("stroom.pipeline.referenceData.localDir")))
            .findFirst()
            .orElseThrow();
    assertValues(configProperty,
            initialValue,
            OverrideValue.unSet(String.class),
            OverrideValue.with(newValue),
            newValue);
}