@Test
public void testGet() throws Exception {

    MockLogService logservice = new MockLogService();
    UkelonnServlet servlet = new UkelonnServlet();
    ServletConfig servletConfig = mock(ServletConfig.class);
    when(servletConfig.getInitParameter("from")).thenReturn("to");
    servlet.init(servletConfig);
    servlet.setLogService(logservice);
    HttpServletRequest request = mock(HttpServletRequest.class);
    when(request.getMethod()).thenReturn("GET");
    when(request.getRequestURI()).thenReturn("http://localhost:8181/ukelonn/");
    when(request.getPathInfo()).thenReturn("/");
    MockHttpServletResponse response = new MockHttpServletResponse();
    servlet.service(request, response);
    assertEquals("text/html", response.getContentType());
    assertEquals(200, response.getStatus());
    assertThat(response.getBufferSize()).isPositive();
}