code: public void setRootPath(Class<? extends Object> testClass) {
          String resource = new StringBuilder().append(testClass.getSimpleName()).append(".class").toString();
          try {
              setRootPath(new File(testClass.getResource(resource).toURI()).getParentFile().toPath().toString());
          } catch (URISyntaxException e) {
              throw new RuntimeException(e);
          }
      }
docs: {@inheritDoc}