@Test
public void builderThrowsWhenResizeFactorIsZero() {

    // given
    UnlimitedResizePolicy.Builder builder = UnlimitedResizePolicy.newBuilder();
    builder.withResizeFactor(0);
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("must be higher than 0");
    // when
    builder.build();
}