A capacitor can be tested using a...