Most modern UPS batteries have built-in test systems. You press a button that says test and gives you an indication of the health of the batteries. However, you can still test a battery if it does not have this function. Use a voltmeter to see if the battery is delivering the indicated power. The battery must be fully charged for this to work.