DefaultCredentialsBuilder implements CredentialsBuilder { @Override public CredentialOptions build() { return CredentialOptions.defaultCredentials(); }  @Override CredentialOptions build(); String toString();  }
@Test public void shouldBuildDefaultOptions() throws Exception { final DefaultCredentialsBuilder credentialsBuilder = new DefaultCredentialsBuilder(); final CredentialOptions credentialOptions = credentialsBuilder.build(); final CredentialOptions.CredentialType type = credentialOptions.getCredentialType(); assertThat(type, is(CredentialOptions.CredentialType.DefaultCredentials)); }