    @Test
    public void testWithoutPathNumericIp() throws Exception {

        RestUri restUri = new RestUri("http://1.1.1.1:8888/some_path");
        assertEquals("http://1.1.1.1:8888/", restUri.withoutPath().getUri());
    }