public ValidationBean checkConnection(final SubprocessExecutionContext execCtx) {
        GitCommand gitCommand = new GitCommand(null, null, refSpecOrBranch, false, secrets());
        try {
            gitCommand.checkConnection(new UrlArgument(urlForCommandLine()));
            return ValidationBean.valid();
        } catch (Exception e) {
            try {
                return handleException(e, gitCommand.version());
            } catch (Exception notInstallGitException) {
                return ValidationBean.notValid(ERR_GIT_NOT_FOUND);
            }
        }
    }
@Test
    void shouldReturnInValidBean() {
        GitMaterial git = new GitMaterial("http://0.0.0.0");
        ValidationBean validationBean = git.checkConnection(new TestSubprocessExecutionContext());
        assertThat(validationBean.isValid()).as("Repository should not exist").isEqualTo(false);
    }