@Test
public void testDoGetResourceNotFound() throws Exception {

    MockLogService logservice = new MockLogService();
    HttpServletRequest request = mock(HttpServletRequest.class);
    when(request.getMethod()).thenReturn("GET");
    when(request.getRequestURL()).thenReturn(new StringBuffer("http://localhost:8181/ukelonn/static/nosuchname.png"));
    when(request.getRequestURI()).thenReturn("http://localhost:8181/ukelonn/static/nosuchname.png");
    when(request.getPathInfo()).thenReturn("/static/nosuchname.png");
    MockHttpServletResponse response = new MockHttpServletResponse();
    UkelonnServlet servlet = new UkelonnServlet();
    servlet.setLogService(logservice);
    servlet.service(request, response);
    assertEquals(404, response.getErrorCode());
}