@Test
public void testSetMaxHttpConnections() {

    final Configuration c = new Configuration();
    assertThatThrownBy(() -> c.setMaxHttpConnections(-1))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("maxHttpConnections: -1 (expected: > 0)");
    assertThatThrownBy(() -> c.setMaxHttpConnections(0))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("maxHttpConnections: 0 (expected: > 0)");
}