### Question:
GitUtils { public static Vcs extractVcs(File workingDir, Log log) throws IOException { log.debug("Extracting Vcs details from the .git directory."); File dotGit = getDotGit(workingDir); if (dotGit == null) { log.debug("Could not find the .git directory."); return new Vcs(); } Vcs vcs = new Vcs(); vcs.setRevision(extractVcsRevision(dotGit, log)); vcs.setUrl(extractVcsUrl(dotGit, log)); return vcs; }  static Vcs extractVcs(File workingDir, Log log);  }### Answer:
@Test private void testReadGitConfig() throws IOException, InterruptedException { File curDir = new File("").getAbsoluteFile(); Log testLog = new TestingLog(); Vcs vcs = GitUtils.extractVcs(curDir, testLog); Assert.assertNotNull(vcs); Assert.assertEquals(vcs.getUrl(), getGitUrlWithExecutor(curDir, testLog)); Assert.assertEquals(vcs.getRevision(), getGitRevisionWithExecutor(curDir, testLog)); }