@Test
public void builderThrowsWhenNameIsNull() {

    // given
    NoopIndexNameFormatter.Builder builder = NoopIndexNameFormatter.newBuilder();
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("indexName");
    // when
    builder.build();
}