@Test
void find_whenLowerBoundIsGreaterThanUpperBound_thenThrowsException() {

    assertThatThrownBy(() -> BinarySearch.find(BinarySearchTest::getRangeForValue, r -> 0, 10, 5))
            .isInstanceOf(IllegalArgumentException.class);
}