@Test(enabled = false)
  // TODO can't test plugins
  public void contextMenuIndex() throws InterruptedException, NoSuchRepositoryException {

    RepositoriesTab repositories = startContextMenuTest();

    // reindex
    MockHelper.expect(REINDEX_URI, new MockResponse(Status.SUCCESS_OK, null));
    repositories.contextMenuReindex(hostedRepo.getId());
    new Window(selenium).waitFor();

    MockHelper.checkExecutions();
    MockHelper.clearMocks();

    MockHelper.expect(REINDEX_URI, new MockResponse(Status.CLIENT_ERROR_BAD_REQUEST, null));
    repositories.contextMenuReindex(hostedRepo.getId());
    new MessageBox(selenium).clickOk();

    MockHelper.checkExecutions();
    MockHelper.clearMocks();

    // incremental reindex
    MockHelper.expect(INCREMENTAL_REINDEX_URI, new MockResponse(Status.SUCCESS_OK, null));
    repositories.contextMenuIncrementalReindex(hostedRepo.getId());
    new Window(selenium).waitFor();

    MockHelper.checkExecutions();
    MockHelper.clearMocks();

    MockHelper.expect(
        INCREMENTAL_REINDEX_URI, new MockResponse(Status.CLIENT_ERROR_BAD_REQUEST, null));
    repositories.contextMenuIncrementalReindex(hostedRepo.getId());
    new MessageBox(selenium).clickOk();

    MockHelper.checkExecutions();
    MockHelper.clearMocks();
  }