@GET
  @Path("search")
  @Produces(MediaType.APPLICATION_JSON)
  public List<AppStoreEntry> search(@QueryParam("q") String keyword) {
    AppCatalogSolrClient sc = new AppCatalogSolrClient();
    return sc.search(keyword);
  }
@Test
  void testSearch() throws Exception {
    String keyword = "jenkins";
    AppStoreController ac = Mockito.mock(AppStoreController.class);
    List<AppStoreEntry> expected = new ArrayList<AppStoreEntry>();
    when(ac.search(keyword)).thenReturn(expected);
    final List<AppStoreEntry> actual = ac.search(keyword);
    assertEquals(expected, actual);
  }