@Test
public void testGetPathArray() {

    Assertions.assertThat(new UriBuilder(scheme, host).build()).satisfies(o -> {
        Assertions.assertThat(UriBuilder.getPathArray(o, 0)).isNull();
        Assertions.assertThat(UriBuilder.getPathArray(o, 1)).isNull();
    });
    Assertions.assertThat(new UriBuilder(scheme, host).path(path).build()).satisfies(o -> {
        Assertions.assertThat(UriBuilder.getPathArray(o, 0)).isNull();
        Assertions.assertThat(UriBuilder.getPathArray(o, 1)).isNull();
        Assertions.assertThat(UriBuilder.getPathArray(o, 2)).containsExactly(path);
        Assertions.assertThat(UriBuilder.getPathArray(o, 3)).isNull();
    });
}