you don't need this variable, just use MockCustomDialog in your test.

Indeed you could even use CustomDialog in the test without this, because the mocks helper change it anyway, but I find this is more readable if you use the Mock name in the test.