	@Test
	public void scheduledVaultTokenRefresh() {

		this.configClientProperties.setUri(new String[] { "https://foobar" });
		given(rest.postForObject(anyString(), any(HttpEntity.class), any())).willReturn("foo");
		ReflectionTestUtils.setField(config, "rest", this.rest);

		await().atMost(Duration.FIVE_SECONDS).untilAsserted(() -> {
			verify(config, atLeast(4)).refreshVaultToken();
			verify(rest, atLeast(4)).postForObject(anyString(), any(HttpEntity.class), any());
		});
	}