* @deprecated in favor of {@link #header(String, Matcher...)}
*/
public static RequestMatcher headerContains(final String header, final String substring) {
Assert.notNull(header, "'header' must not be null");
Assert.notNull(substring, "'substring' must not be null");
return new RequestMatcher() {
public void match(ClientHttpRequest request) throws AssertionError {
List<String> actualHeaders = request.getHeaders().get(header);
AssertionErrors.assertTrue("Expected header <" + header + "> in request", actualHeaders != null);
boolean foundMatch = false;