private File resolveAbsolutePathToResourcesFolder() throws URISyntaxException {
    URL dirURL = this.getClass().getClassLoader().getResource("TestAmbaryServer.samples");
    if (dirURL != null && dirURL.getProtocol().equals("file")) {
      return new File(dirURL.toURI());
    } else {
      throw new UnsupportedOperationException(
        String.format("Dir uri %s does not seem to point to file. Maybe a jar?",
          dirURL.toURI()));
    }

  }
Resolves File of ambari-server/src/test/resources/ folder.
Determines path based on TestAmbaryServer.samples folder in test resources
Should not depend on how and from which location the ambari-server
was started.
@return File of ambari-server/src/test/resources/ folder.
ambari-server/src/test/java/org/apache/ambari/server/state/ServicePropertiesTest.java