@Test
public void testDoGetAddTrailingSlash() 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"));
    when(request.getRequestURI()).thenReturn("http://localhost:8181/ukelonn");
    when(request.getServletPath()).thenReturn("/frontend-karaf-demo");
    MockHttpServletResponse response = new MockHttpServletResponse();
    UkelonnServlet servlet = new UkelonnServlet();
    servlet.setLogService(logservice);
    servlet.service(request, response);
    assertEquals(302, response.getStatus());
}