/**
* Tests method {@link StaticResources#isStatic(java.lang.String)}.
*/
@Test
public void isStatic() {
HttpServletRequest request = new MockHttpServletRequest();
((MockHttpServletRequest) request).setRequestURI("/css/test.css");
Assert.assertTrue(StaticResources.isStatic(request));
request = new MockHttpServletRequest();
((MockHttpServletRequest) request).setRequestURI("/images/test.jpg");
Assert.assertTrue(StaticResources.isStatic(request));
request = new MockHttpServletRequest();
((MockHttpServletRequest) request).setRequestURI("/js/lib/jquery/jquery.min.js");
Assert.assertTrue(StaticResources.isStatic(request));
request = new MockHttpServletRequest();
((MockHttpServletRequest) request).setRequestURI("/test.notExist");
Assert.assertFalse(StaticResources.isStatic(request));
request = new MockHttpServletRequest();
((MockHttpServletRequest) request).setRequestURI("/images/test");
Assert.assertFalse(StaticResources.isStatic(request));
}