@Test
public void testSetMaxWorkerThreadPoolSize() {

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