  @Test
  public void shouldCallMarqetaApiOnSuccessfulCreateUserInvocation() {

    final CreateUserResponse response = new CreateUserResponse();
    when(restTemplate.postForObject(any(), any(), any(), any(Object[].class))).thenReturn(response);

    final CreateUserRequest request = new CreateUserRequest();

    assertThat(target.createUser(request), is(sameInstance(response)));

    verify(restTemplate).postForObject(
        eq("https://shared-sandbox-api.marqeta.com/v3/users"),
        same(request),
        eq(CreateUserResponse.class),
        any(Object[].class)
    );
  }