@Test
  public void testCreateSearchQuery() throws Exception {
    mockController.replay();

    BrowseProjectContext ctx = new BrowseProjectContext(null, new MockProject(100L, "STVO"));
    Query initialQuery = ctx.createQuery();
    assertEquals(JqlQueryBuilder.newBuilder().where().project("STVO").buildQuery(), initialQuery);
  }
  @Test
  public void testCreateParameters() throws Exception {
    final Project proj100 = new MockProject(100L, "JQL");
    final User admin = new MockUser("admin");
    BrowseProjectContext ctx = new BrowseProjectContext(admin, proj100);

    final Map<String, Object> params = ctx.createParameterMap();
    assertEquals(2, params.size());
    assertEquals(admin, params.get("user"));
    assertEquals(proj100, params.get("project"));
  }