@Test
public void testCommonProductConfigPath() {

    // spring-boot 1.5.x
    //org.springframework.boot.test.util.EnvironmentTestUtils.addEnvironment(this.context, "spring.cloud.config.server.common-config.application:common-production");
    // spring-boot 2.x
    TestPropertyValues values = TestPropertyValues.of("spring.cloud.config.server.common-config.application=common-production");
    values.applyTo(this.context);
    this.context.refresh();
    extractor = this.context.getBean(GitlabRepositoryPathNotificationExtractor.class);
    final MultiValueMap<String, String> headers = new HttpHeaders();
    headers.put("X-Gitlab-Event", newArrayList("Push Hook"));
    System.setProperty("spring.cloud.config.server.common-config.application", "common-production");
    assertTrue(contains( //
        this.extractor.extract(headers, payload("home1-oss-common-config")).getPaths(), //
        "application" //
    ));
}