Can I test APN by sending push notifications to an iOS simulator?

Yes, messages sent via PubNub to an iOS simulator will be received. However, APN specifically requires a real iOS mobile device.