### Question:
TaggingRequestFilterFunction implements ExchangeFilterFunction { @Override public Mono<ClientResponse> filter(ClientRequest clientRequest, ExchangeFunction nextFilter) { HttpHeaders headers = clientRequest.headers(); setHeader(headers, TAG_HEADER_NAME, headerValue); if (orgHeaderValue != null && spaceHeaderValue != null) { setHeader(headers, TAG_HEADER_ORG_NAME, orgHeaderValue); setHeader(headers, TAG_HEADER_SPACE_NAME, spaceHeaderValue); } return nextFilter.exchange(clientRequest); } TaggingRequestFilterFunction(String deployServiceVersion);   TaggingRequestFilterFunction(String deployServiceVersion, String org, String space); @Override Mono<ClientResponse> filter(ClientRequest clientRequest, ExchangeFunction nextFilter); static final String TAG_HEADER_SPACE_NAME; static final String TAG_HEADER_ORG_NAME; static final String TAG_HEADER_NAME; }### Answer:
@Test void testInjectOnlyDeployServiceVersion() throws IOException { TaggingRequestFilterFunction testedFilterFunction = new TaggingRequestFilterFunction(TEST_VERSION_VALUE); testedFilterFunction.filter(clientRequest, nextFilter); assertEquals("MTA deploy-service v1.58.0", actualHeaders.getFirst(TaggingRequestFilterFunction.TAG_HEADER_NAME)); assertFalse(actualHeaders.containsKey(TaggingRequestFilterFunction.TAG_HEADER_ORG_NAME)); assertFalse(actualHeaders.containsKey(TaggingRequestFilterFunction.TAG_HEADER_SPACE_NAME)); }
@Test void testInjectOrgAndSpaceValues() throws IOException { TaggingRequestFilterFunction testedFilterFunction = new TaggingRequestFilterFunction(TEST_VERSION_VALUE, TEST_ORG_VALUE, TEST_SPACE_VALUE); testedFilterFunction.filter(clientRequest, nextFilter); assertEquals("MTA deploy-service v1.58.0", actualHeaders.getFirst(TaggingRequestFilterFunction.TAG_HEADER_NAME)); assertEquals(TEST_ORG_VALUE, actualHeaders.getFirst(TaggingRequestFilterFunction.TAG_HEADER_ORG_NAME)); assertEquals(TEST_SPACE_VALUE, actualHeaders.getFirst(TaggingRequestFilterFunction.TAG_HEADER_SPACE_NAME)); }