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

    Service yarnfile = new Service();
    Component comp = new Component();
    Container c = new Container();
    c.setId("container-1");
    List<Container> containers = new ArrayList<Container>();
    containers.add(c);
    comp.setContainers(containers);
    yarnfile.addComponent(comp);
    AppEntry actual = new AppEntry();
    actual.setName(id);
    actual.setYarnfile(yarnfile);
    when(ac.getStatus(id)).thenReturn(actual);
    final AppEntry result = ac.getStatus(id);
    assertEquals(result, actual);
  }