@Test
public void builderThrowsWhenResizeFactorIsHigherThanOne() {

    // given
    UnlimitedResizePolicy.Builder builder = UnlimitedResizePolicy.newBuilder();
    builder.withResizeFactor(1.01);
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("must be lower or equal 1");
    // when
    builder.build();
}