@Test
public void getReasonForInvalidity() {

    final IllegalStateException expectedReasonForInvalidity = new IllegalStateException("foo");
    final BinaryValidationResult underTest = BinaryValidationResult.invalid(expectedReasonForInvalidity);
    assertThat(underTest.getReasonForInvalidity()).isEqualTo(expectedReasonForInvalidity);
}