@Test
public void getsBaseUri() {

    when(request.getBaseUri()).thenReturn(URI.create("http://localhost:8080/servlet"));
    assertEquals(URI.create("http://localhost:8080/servlet"), applicationContext.getBaseUri());
}