code: public void setRootMethodAdapter(JavaRootMethodAdapter rootMethodAdapter) {
          if (rootMethodAdapter == null) {
              throw new NullPointerException();
          }
          if (acceptableTestFramework == null) {
              throw new IllegalStateException("acceptableTestFramework is not set");
          }
          if (acceptableTestFramework.equals(rootMethodAdapter.getName())) {
              this.rootMethodAdapter = rootMethodAdapter;
          }
      }
docs: TODO throw error if called　from other method than initialSetAdapter