@Override
      public boolean accept(File file) {
        // file has the folder named 'upgrades', ends with '.xml' and is NOT 'config-upgrade.xml'
        if (file.getAbsolutePath().contains("upgrades") &&
            file.getAbsolutePath().endsWith(".xml") &&
            !file.getAbsolutePath().contains("config-upgrade.xml")) {

          return true;
        }

        return false;
      }
Tests parsing upgrade packs in the entire codebase.  This does not use Guice
initialization, which will parse upgrade packs itself.
ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackParsingTest.java