if(!java.lang.reflect.Modifier.isStatic(runMethod.getModifiers()))thrownewRuntimeException("Run method should be static");
if(!int.class.isAssignableFrom(runMethod.getReturnType()))thrownewRuntimeException("Run method should return int");
if(!int.class.isAssignableFrom(runMethod.getReturnType()))thrownewRuntimeException("Run method "+runMethod+" returns "+runMethod.getReturnType()+", it should return int");