MesosClient { @NotNull static String createRedirectUri(@NotNull final URI uri) { return uri.toString().replaceAll("/api/v1/(?:scheduler|executor)", "/redirect"); } MesosClient(
        @NotNull final URI mesosUri,
        @NotNull final Function<Class<?>, UserAgentEntry> applicationUserAgentEntry,
        @NotNull final MessageCodec<Send> sendCodec,
        @NotNull final MessageCodec<Receive> receiveCodec,
        @NotNull final Send subscribe,
        @NotNull final Function<Observable<Receive>, Observable<Optional<SinkOperation<Send>>>> streamProcessor,
        @NotNull final  Observable.Transformer<byte[], byte[]> backpressureTransformer
    ); @NotNull AwaitableSubscription openStream();  }
@Test public void testCreateRedirectUri() throws Exception { final URI mesosUri = URI.create("http: final String actual = MesosClient.createRedirectUri(mesosUri); assertThat(actual).isEqualTo("http: }
@Test public void testCreateRedirectUri_nestedPath() throws Exception { final URI mesosUri = URI.create("http: final String actual = MesosClient.createRedirectUri(mesosUri); assertThat(actual).isEqualTo("http: }