@Test
public void returnsTrueForRealStaticResources() throws Exception {

	File file = File.createTempFile("_test", ".xml");
	String key = file.getAbsolutePath();
	when(request.getRequestURI()).thenReturn("/contextName/" +key);
when(request.getContextPath()).thenReturn("/contextName/");
when(context.getResource(key)).thenReturn(file.toURI().toURL());
boolean result = new DefaultStaticContentHandler(context).requestingStaticFile(request);
assertThat(result, is(equalTo(true)));
}