@Test
public void getHostThrowsOnInvalidUri() {

    // given
    String url = "${";
    UriParser uriParser = new UriParser();
    expectedException.expect(ConfigurationException.class);
    // when
    uriParser.getHost(url);
}