void (@NotNull String expectedPresentation, @NotNull GitBranch expectedBranch) { GitPushTarget target = GitPushTarget.getFromPushSpec(repo, Objects.requireNonNull(this.repo.getCurrentBranch())); assertNotNull(target); assertFalse(target.isSpecialRef()); assertEquals(expectedPresentation, target.getPresentation()); GitRemoteBranch remoteBranch = target.getBranch(); assertEquals(expectedBranch, remoteBranch); }