@Test
public void getPortThrowsOnInvalidUri() {

    // given
    String url = "%s";
    UriParser uriParser = new UriParser();
    expectedException.expect(ConfigurationException.class);
    // when
    uriParser.getPort(url);
}