@Test
public void getLastPathSegment() {

    assertEquals("example", UriUtils.getLastPathSegment(UriUtils.buildUri("http://example.com/example")));
    assertEquals("example", UriUtils.getLastPathSegment(UriUtils.buildUri("http://example.com:8000/example?one=1")));
    assertEquals("", UriUtils.getLastPathSegment(UriUtils.buildUri("http://example.com:8000")));
    assertEquals("", UriUtils.getLastPathSegment(UriUtils.buildUri("http://example.com:8000/example/")));
}