### Question:
GitSkipSslValidationCredentialsProvider extends CredentialsProvider { @Override public boolean isInteractive() { return (this.delegate != null) && this.delegate.isInteractive(); } GitSkipSslValidationCredentialsProvider(CredentialsProvider delegate); static boolean canHandle(String uri); @Override boolean isInteractive(); @Override boolean supports(CredentialItem... items); @Override boolean get(URIish uri, CredentialItem... items); @Override void reset(URIish uri);  }### Answer:
@Test public void testIsInteractive() { assertThat(this.skipSslValidationCredentialsProvider.isInteractive()) .as("GitSkipSslValidationCredentialsProvider with no delegate requires no user interaction").isFalse(); }
@Test public void testIsInteractiveWithDelegate() { this.skipSslValidationCredentialsProvider = new GitSkipSslValidationCredentialsProvider( this.mockDelegateCredentialsProvider); when(this.mockDelegateCredentialsProvider.isInteractive()).thenReturn(true); assertThat(this.skipSslValidationCredentialsProvider.isInteractive()) .as("With a delegate provider, isInteractive value depends on the delegate").isTrue(); }