GitCheckoutResponse implements CommandResponse { public Ref getBranch() { return branch; } protected  GitCheckoutResponse(); Ref getNewBranch(); Ref getBranch(); Iterator<File> getModifiedFilesIterator(); Iterator<File> getAddedFilesIterator(); Iterator<File> getDeletedFilesIterator(); File getAddedFile(int index); File getDeletedFile(int index); File getModifiedFile(int index); int getNumberOfAddedFiles(); int getNumberOfModifiedFiles(); int getNumberOfDeletedFiles();  }
@Test public void testGitCheckoutSwitchToBranch() throws JavaGitException { parser.parseLine("Switched to branch \"foo01\""); GitCheckoutResponse response = parser.getResponse(); assertEquals("Switching to branch foo01", "\"foo01\"", response.getBranch().getName()); }