If we want to use java for the test-driver, here is a library that allows a java program to send push notifications:
Similar, for node we have the same: