private File getVersion() {
    File version = new File("src/test/resources/version");

    if (System.getProperty("os.name").contains("Windows")) {
      version = new File(new File(ClassLoader.getSystemClassLoader().getResource("").getPath()).getParent(), "version");
    }

    return version;
  }
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