RestClientFactoryBuilder { public RestClientFactoryBuilder defaultConfigurator(ClientConfigurator defaultConfigurator) { if (defaultConfigurator != null) { this.defaultConfigurator = defaultConfigurator; } else { this.defaultConfigurator = DEFAULT_CONFIGURATOR; } return this; }  static RestClientFactoryBuilder builder(); RestClientFactoryBuilder defaultConfigurator(ClientConfigurator defaultConfigurator); RestClientFactoryBuilder clientConfigurator(ClientConfigurator clientConfigurator); RestClientFactoryBuilder additionalClientConfigurators(
            ClientConfigurator... clientConfigurators); RestClientFactoryBuilder additionalClientConfigurators(
            List<ClientConfigurator> clientConfigurators); RestClientFactory build(); static final ClientConfigurator DEFAULT_CONFIGURATOR; }
@Test public void testDefaultConfigurator() { RestClientFactory factory = RestClientFactoryBuilder.builder().build(); ClientConfigurator fromFactory = factory.getClientConfigurator(); assertTrue(fromFactory instanceof CompositeClientConfigurator); CompositeClientConfigurator compositeClientConfigurator = (CompositeClientConfigurator) fromFactory; assertEquals( ImmutableList.of(RestClientFactoryBuilder.DEFAULT_CONFIGURATOR), compositeClientConfigurator.getConfigurators()); }