Most modern UPS batteries have built-in test systems. You will press a button that says test and it will give you an indication of the battery's health. However, you can still test a battery if it doesn’t have this function. Use a voltmeter to see if the battery is giving off the stated power. The battery needs to be fully charged for this to work.