@Test
public void testGetURIScheme() {

    Settings settings = createHttpDefaultPortSettings();
    String serverUriScheme = Settings.getURIScheme();
    String expectedValue = "http:";
    assertEquals("no :port appended if default http port 80 is used.", expectedValue, serverUriScheme);
    settings = createHttpOtherPortSettings();
    serverUriScheme = Settings.getURIScheme();
    expectedValue = "http:";
    assertEquals("other :port appended.", expectedValue, serverUriScheme);
    settings = createHttpsDefaultPortSettings();
    serverUriScheme = Settings.getURIScheme();
    expectedValue = "https:";
    assertEquals("no :port appended if default https port 443 is used.", expectedValue, serverUriScheme);
    settings = createHttpsOtherPortSettings();
    serverUriScheme = Settings.getURIScheme();
    expectedValue = "https:";
    assertEquals("other :port appended.", expectedValue, serverUriScheme);
}