assertTrue(requestMatcher.matches(request));
}
@Test
public void testHasHeaderTwoEntries() throws Exception {
ELRequestMatcher requestMatcher = new ELRequestMatcher(
"hasHeader('User-Agent','MSIE') or hasHeader('User-Agent','Mozilla')");
MockHttpServletRequest request = new MockHttpServletRequest();
request.addHeader("User-Agent", "MSIE");
assertTrue(requestMatcher.matches(request));
request = new MockHttpServletRequest();
request.addHeader("User-Agent", "Mozilla");
assertTrue(requestMatcher.matches(request));
}