### Question:
ActiveContextManager { public void initActiveContext(final String path) { view.showBusyIndicator(CommonConstants.INSTANCE.Loading()); explorerService.call(new RemoteCallback<WorkspaceProject>() { @Override public void callback(final WorkspaceProject workspaceProject) { explorerService.call(new RemoteCallback<ProjectExplorerContent>() { @Override public void callback(final ProjectExplorerContent projectExplorerContent) { if (workspaceProject != null) { WorkspaceProjectContextChangeEvent t = new WorkspaceProjectContextChangeEvent(workspaceProject, workspaceProject.getMainModule()); contextChangeEvent.fire(t); } contentCallback.callback(projectExplorerContent); } }, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(path, activeOptions.getOptions()); } }).resolveProject(path); } ActiveContextManager(); @Inject  ActiveContextManager(final ActiveContextItems activeContextItems,
                                final ActiveContextOptions activeOptions,
                                final Caller<ExplorerService> explorerService,
                                final Event<WorkspaceProjectContextChangeEvent> contextChangeEvent); void init(final View view,
                     final RemoteCallback<ProjectExplorerContent> contentCallback); void initActiveContext(final String path); void initActiveContext(final Repository repository,
                                  final Branch branch); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module,
                                  final org.guvnor.common.services.project.model.Package pkg); void initActiveContext(final WorkspaceProjectContext context);  }### Answer:
@Test public void initActiveContextWithPathString() throws Exception { final WorkspaceProject workspaceProject = mock(WorkspaceProject.class); doReturn(workspaceProject).when(explorerService).resolveProject("path"); final ProjectExplorerContent projectExplorerContent = mock(ProjectExplorerContent.class); doReturn(projectExplorerContent).when(explorerService).getContent(eq("path"), any(ActiveOptions.class)); activeContextManager.initActiveContext("path"); verify(view).showBusyIndicator("Loading"); verify(contextChangeEvent).fire(eventArgumentCaptor.capture()); assertEquals(workspaceProject, eventArgumentCaptor.getValue().getWorkspaceProject()); verify(contentCallback).callback(projectExplorerContent); }