@UseDataProvider("forBuildsUriFromArrayEncodeSlashInPath")
@Test
public void buildsUriFromArrayEncodeSlashInPath(String source, boolean encodeSlashInPath, Object[] array, String expected) {

    URI uri = UriBuilder.fromUri(source).build(array, encodeSlashInPath);
    assertEquals(URI.create(expected), uri);
}