@Override
    public final void checkConnection() {
        LOGGER.info("[TFS] Checking Connection: Server {}, Domain {}, User {}, Project Path {}", url, domain, userName, projectPath);
        try {
            List<Modification> modifications = latestInHistory();
            if (modifications.isEmpty()) {
                throw new IllegalStateException("There might be no commits on the project path, project path might be invalid or user may have insufficient permissions.");
            }
        } catch (Exception e) {
            String message = String.format("Failed while checking connection using Url: %s, Project Path: %s, Username: %s, Domain: %s, Root Cause: %s", url, projectPath,
                    userName,
                    domain, e.getMessage());
            throw new RuntimeException(message, e);
        }
    }
@Test
    public void testCheckConnection() throws Exception {
        tfsCommand.checkConnection();
    }