@Test
void secondPart() {

    URIPath target = new URIPath("/example/target");
    Optional<String> expected = Optional.of("target");
    Optional<String> result = target.getPart(1);
    assertEquals(expected, result);
}