@Test
public void parserReturnsPortGivenHttpUrl() {

    // given
    String url = "tcp://localhost:8080";
    UriParser uriParser = new UriParser();
    // when
    int parsedPort = uriParser.getPort(url);
    // then
    Assert.assertEquals(8080, parsedPort);
}