@Path("config/{id}")
  @GET
  @Produces(MediaType.APPLICATION_JSON)
  public AppEntry getDetails(@PathParam("id") String id) {
    AppCatalogSolrClient sc = new AppCatalogSolrClient();
    return sc.findAppEntry(id);
  }
@Test
  void testGetDetails() throws Exception {
    String id = "application 1";
    AppDetailsController ac = Mockito.mock(AppDetailsController.class);

    AppEntry actual = new AppEntry();
    actual.setName(id);
    when(ac.getDetails(id)).thenReturn(actual);
    final AppEntry result = ac.getDetails(id);
    assertEquals(result, actual);
  }