This can be tested with the following command from JunOS. Please check here for specific information to use with this trap.
request snmp spoof-trap jnxPowerSupplyFailure variable-bindings “jnxContentsDescr = PEM\ 2, jnxOperatingState = 6”