GitCheckoutResponse implements CommandResponse { public Ref getNewBranch() { return newBranch; } 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 testGitCheckoutResponseSwitchToNewBranch() throws JavaGitException { parser.parseLine("Switched to a new branch \"foo02\""); GitCheckoutResponse response = parser.getResponse(); assertEquals("Switching to New branch foo02", "\"foo02\"", response.getNewBranch().getName()); }