@Test
public void checkServerUrl() {

    GrapesClient grapesClient = new GrapesClient("host", null);
    assertEquals("http://host/", grapesClient.getServerURL());
    grapesClient = new GrapesClient("host", "");
    assertEquals("http://host/", grapesClient.getServerURL());
    grapesClient = new GrapesClient("host", "12345");
    assertEquals("http://host:12345/", grapesClient.getServerURL());
}