MessageRestController { @RequestMapping("/message") String getMessage() { return this.message; }    }
@Test public void contextLoads() { assertThat(controller.getMessage()).isNotEqualTo("Hello test"); TestPropertyValues .of("message:Hello test") .applyTo(environment); assertThat(controller.getMessage()).isNotEqualTo("Hello test"); refresher.refresh(); assertThat(controller.getMessage()).isEqualTo("Hello test"); }