@Test
public void deleteWorkflow() {

  when(client.send(any(Request.class))).thenReturn(
      CompletableFuture.completedFuture(response(HTTP_NO_CONTENT)));
  final CompletableFuture<Void> r = styx.deleteWorkflow("f[ ]o-cmp", "bar-w[f]")
      .toCompletableFuture();
  verify(client, timeout(30_000)).send(requestCaptor.capture());
  assertThat(r.isDone(), is(true));
  assertThat(r.isCompletedExceptionally(), is(false));
  final Request request = requestCaptor.getValue();
  final URI uri = URI.create(API_URL + "/workflows/f%5B%20%5Do-cmp/bar-w%5Bf%5D");
  assertThat(request.url().toString(), is(uri.toString()));
  assertThat(request.method(), is("DELETE"));
}