@Test
public void appliesCredentialsIfConfigured() {

    // given
    Credentials<Settings.Builder> credentials = Mockito.mock(Credentials.class);
    Settings.Builder settingsBuilder = Settings.builder();
    ShieldAuth shieldAuth = createTestBuilder()
            .withCredentials(credentials)
            .build();
    // when
    shieldAuth.configure(settingsBuilder);
    // then
    Mockito.verify(credentials).applyTo(builderArgumentCaptor.capture());
    Assert.assertEquals(settingsBuilder, builderArgumentCaptor.getValue());
}