@Test
public void testCreatingNewBranchFromMaster() throws IOException, JavaGitException {

    GitCheckoutOptions options = new GitCheckoutOptions();
    options.setOptB(Ref.createBranchRef(TEST_BRANCH));
    Ref branch = Ref.createBranchRef("master");
    GitCheckoutResponse response = gitCheckout.checkout(repositoryDirectory, options, branch);
    String branchName = response.getNewBranch().getName();
    String branchNameNoQuotes = branchName.substring(1, branchName.length() - 1);
    assertEquals("Wrong name for new branch, ", TEST_BRANCH, branchNameNoQuotes);
}