CodeStyle
[imp] Refactor Application mocks. Closes #3776