@Override
	public void accept(ServerWebExchange exchange, CachedResponse cachedResponse) {
		ServerHttpResponse response = exchange.getResponse();
		long calculatedMaxAgeInSeconds = calculateMaxAgeInSeconds(exchange.getRequest(), cachedResponse,
				configuredTimeToLive);
		rewriteCacheControlMaxAge(response.getHeaders(), calculatedMaxAgeInSeconds);
	}
@Test
	void otherHeadersAreNotRemoved_whenMaxAgeIsModified() {
		inputExchange.getResponse().getHeaders().put("X-Custom-Header", List.of("DO-NOT-REMOVE"));
		Duration timeToLive = Duration.ofSeconds(30);
		CachedResponse inputCachedResponse = CachedResponse.create(HttpStatus.OK).timestamp(clock.instant()).build();

		SetMaxAgeHeaderAfterCacheExchangeMutator toTest = new SetMaxAgeHeaderAfterCacheExchangeMutator(timeToLive,
				clock, false);
		toTest.accept(inputExchange, inputCachedResponse);

		List<String> cacheControlValues = inputExchange.getResponse().getHeaders().get("X-Custom-Header");
		assertThat(cacheControlValues).contains("DO-NOT-REMOVE");
	}