@Test
public void throwsIfUnknownHostWasProvided() {

    // given
    Builder builder = createTestObjectFactoryBuilder();
    builder.withServerUris("http://unknowntesthost:8080");
    BulkProcessorObjectFactory factory = builder.build();
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("unknowntesthost");
    // when
    factory.createClient();
}