@Test
public void testCreateRedirectUri_nestedPath() throws Exception {

    final URI mesosUri = URI.create("http://127.1.0.1:5050/nested/api/v1/scheduler");
    final String actual = MesosClient.createRedirectUri(mesosUri);
    assertThat(actual).isEqualTo("http://127.1.0.1:5050/nested/redirect");
}