Heads Up notifications in Android Lollipop

While playing with notifications in Android lollipop, it becomes difficult to determine when the heads up notification will appear which in turn hampers the test scripts execution say while trying to click on a button displayed in the application header (Top of the screen), sometimes heads up notification gets clicked unintentionally as it hides the button.

UI automator currently does not detect heads up notification and hence it cannot be inspected.
If appium will start supporting heads up notification, then unexpected failures of automation scripts can be avoided.