When testing application deploying, need to access mule context and life...

...cycle manager to determine the status of an application.

When using mock application, this requires to mock both objects and map the phase to an application status (like in the agent and plugins).
To simplify this and avoid code duplication, it would be better to have an application status.