another possibility:
* use another mockApp object with a differnt name for the second call to handleInstallSuccess
* at the end, check that the dialog is showing the first mockApp name

so that we know, from the outside, that the correct dialog is shown