@Test
  public void testGetCommonWidgetsFile() throws AmbariException {
    File widgetsFile = metaInfo.getCommonWidgetsDescriptorFile();

    Assert.assertNotNull(widgetsFile);
    Assert.assertEquals("src/test/resources/widgets.json", widgetsFile.getPath());
  }
Test scenario when service were removed and not mapped alerts need to be disabled

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java