There are various methods of testing a new engine.
First a newly developed engine has to go through rigorous ground testing procedures.
After initial firing, an engine is tested and upgraded for a long time. The TF6000, for example, intended to give 6000lbf dry thrust, may only give 3500lbf...