@Test
public void testTokenSuccess() {

  when(client.send(any(Request.class)))
      .thenReturn(CompletableFuture.completedFuture(response(HTTP_OK)));
  final CompletableFuture<Void> r =
      styx.triggerWorkflowInstance("foo", "bar", "baz").toCompletableFuture();
  verify(client, timeout(30_000)).send(requestCaptor.capture());
  assertThat(r.isDone(), is(true));
  final Request request = requestCaptor.getValue();
  assertThat(request.header("Authorization"), is("Bearer foobar"));
}