public AbstractJUnitRunner(final Class<?> testClass) throws InitializationError {
   super(testClass);
   SessionUser runTestAs = testClass.getAnnotation(SessionUser.class);
   if (runTestAs != null) runAs = runTestAs.value();
   SessionDb runTestDb = testClass.getAnnotation(SessionDb.class);
   if (runTestDb != null) db = runTestDb.value();
   runLegacy = testClass.isAnnotationPresent(RunLegacy.class);
 }
 protected String getRunAs(final FrameworkMethod method) {
   SessionUser runTestAs = method.getAnnotation(SessionUser.class);
   String ret = null;
   if (runTestAs != null) {
     ret = runTestAs.value();
   }
   if (ret == null) {
     ret = runAs;
   }
   return ret;
 }