// push all
// TODO: replace with REST API when bug 339115 is fixed
git.push().setPushAll().call();
assertEquals(1, git.branchList().call().size() - localBefore);
assertEquals(1, git.branchList().setListMode(ListMode.REMOTE).call().size() - remoteBefore);
assertEquals(2, git.branchList().setListMode(ListMode.ALL).call().size() - allBefore);
checkoutBranch(cloneLocation, Constants.MASTER);
JSONObject remoteBranch = getRemoteBranch(gitRemoteUri, 2, 0, Constants.MASTER);
assertNotNull(remoteBranch);