This method is deprecated and HttpHeadersAssert can't be used here since that would introduce a circular dependency between modules, so a boolean assertion on HttpHeaders#containsHeaderValue seems the best option for that use case.