private TestCase getTestCase(Access access1, Access access2) {
   try {
     return TestCase.valueOf(access1.toString() + "_" + access2.toString());
   } catch (Exception e1) {
     try {
       return TestCase.valueOf(access2.toString() + "_" + access1.toString());
     } catch (Exception e2) {
       return null;
     }
   }
 }
 private TestCase getTestCase(Access access, Authentication authentication) {
   try {
     return TestCase.valueOf(access.toString() + "_" + authentication.toString());
   } catch (Exception e1) {
     return null;
   }
 }
 private TestCase getTestCase(Authentication authentication, String prefix) {
   try {
     String accessVal = prefix + "_" + authentication.toString();
     return TestCase.valueOf(accessVal);
   } catch (Exception e) {
     return null;
   }
 }
  private TestCase getTestCase(Authentication authentication, boolean isDynamic) {
    try {
      String accessVal = authentication.toString();

      if (isDynamic) {
        accessVal += "_DYNAMIC";
      }

      return TestCase.valueOf(accessVal);
    } catch (Exception e) {
      return null;
    }
  }
  protected TestCase getTestCase(Access access, boolean isDynamic) {
    try {
      String accessVal = access.toString();

      if (isDynamic) {
        accessVal += "_DYNAMIC";
      }

      return TestCase.valueOf(accessVal);
    } catch (Exception e) {
      return null;
    }
  }
 public static void main(String[] args) {
   try {
     // to init Utils before call SecurityManager
     Class.forName(Utils.class.getName(), true, Utils.class.getClassLoader());
   } catch (ClassNotFoundException e) {
     throw new Error("[TEST BUG]: jdk.test.lib.Utils not found", e);
   }
   try {
     TestCase mode = TestCase.valueOf(args[0]);
     mode.run();
   } catch (IllegalArgumentException e) {
     throw new Error("[TEST BUG]: Unknown mode " + args[0], e);
   }
 }