public ValidationBean handleException(Exception e, GitVersion gitVersion) {
        ValidationBean defaultResponse = ValidationBean.notValid(e.getMessage());
        try {
            if (!gitVersion.isMinimumSupportedVersionOrHigher()) {
                return ValidationBean.notValid(ERR_GIT_OLD_VERSION + gitVersion.getVersion().toString());
            } else {
                return defaultResponse;
            }
        } catch (Exception ex) {
            return defaultResponse;
        }
    }
@Test
    void shouldReturnInvalidBeanWithRootCauseAsRepositoryURLIsNotFoundIfVersionIsAbove19() {
        ValidationBean validationBean = new GitMaterial("http://0.0.0.0").handleException(new Exception("not found!"), GIT_VERSION_1_9);
        assertThat(validationBean.isValid()).isFalse();
        assertThat(validationBean.getError()).contains("not found!");
    }