private File getDirectoryFromMainResources(String dir) throws URISyntaxException, IOException {
    File resourcesFolder = new File(resolveAbsolutePathToResourcesFolder(), "../../../src/main/resources");
    File resultDir = new File(resourcesFolder, dir);
    if (resultDir.exists()) {
      return resultDir;
    } else {
      String msg = String.format("Directory %s does not exist", resultDir.getAbsolutePath());
      throw new IOException(msg);
    }
  }
Looks for directory under ambari-server/src/main/resources/ path.
@param dir directory name
@return File that points to a requested directory
ambari-server/src/test/java/org/apache/ambari/server/state/ServicePropertiesTest.java