### Question:
CredentialsBuilder implements Builder<Credentials> { public static CredentialsBuilder create() { return new CredentialsBuilder(new ImmutableList.Builder<Credential>()); } CredentialsBuilder(final ImmutableList.Builder<Credential> credentials); static CredentialsBuilder create(); static CredentialsBuilder createFromExisting(final Credentials credentials); CredentialsBuilder withCredential(final String name,
                                             final String value); CredentialsBuilder withCredential(final String name,
                                             final String type,
                                             final List<ConfigurationEntry> configurationEntries); CredentialsBuilder withCredential(final Credential credential); @Override Credentials build();  }### Answer:
@Test public void testCreate() { final Credentials credentials = CredentialsBuilder.create() .withCredential("hive2", "hive", Collections.singletonList( new ConfigurationEntry("jdbcUrl", "jdbc: .build(); assertEquals("hive2", credentials.getCredentials().get(0).getName()); assertEquals("hive", credentials.getCredentials().get(0).getType()); assertEquals("jdbcUrl", credentials.getCredentials().get(0).getConfigurationEntries().get(0).getName()); assertEquals("jdbc: }