@Test
public void getContextUrl() throws MalformedURLException {

    StringBuilder url = Util.getContextUrlString("http://host:8080", "some-context");
    Assert.assertEquals("http://host:8080/some-context/", url.toString());
}