@Test
public 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);
}