@Test
void shouldThrowIfSmallerThanIntegerMin()
{

    IntegerValue value1 = new IntegerValue( Integer.MIN_VALUE );
    IntegerValue value2 = new IntegerValue( Integer.MIN_VALUE - 1L );
    assertThat(value1.asInt(), equalTo(Integer.MIN_VALUE));
    assertThrows( LossyCoercion.class, value2::asInt );
}