### Question:
ProjectBranchBreadcrumb implements BreadcrumbPresenter { public void onBranchChanged(final Branch branch) { libraryPlaces.goToProject(libraryPlaces.getActiveWorkspace(), branch); } @Inject  ProjectBranchBreadcrumb(final View view,
                                   final LibraryPlaces libraryPlaces,
                                   final Event<NotificationEvent> notificationEvent,
                                   final ProjectController projectController,
                                   final Promises promises); ProjectBranchBreadcrumb setup(final Collection<Branch> branches); @Override void activate(); @Override void deactivate(); Branch getCurrentBranch(); List<Branch> getBranches(); @Override UberElemental<? extends BreadcrumbPresenter> getView(); void onBranchChanged(final Branch branch); void newBranchEvent(@Observes final NewBranchEvent newBranchEvent); void repositoryUpdatedEvent(@Observes final RepositoryUpdatedEvent event); static final Comparator<Branch> BRANCH_ALPHABETICAL_ORDER_COMPARATOR; }### Answer:
@Test public void onBranchChangedTest() { final Branch branch = makeBranch("branch", "repo"); presenter.onBranchChanged(branch); verify(libraryPlaces).goToProject(project, branch); }