@Test
public void providedAuthIsUsedToCustomizeClient() {

    // given
    Auth auth = mock(Auth.class);
    ClientProvider clientProvider = new SecureClientProvider(auth);
    // when
    clientProvider.createClient();
    // then
    Mockito.verify(auth).configure(any());
}