Plugin testing via junit rule

Corresponding issue: https://jira.codehaus.org/browse/MPLUGINTESTING-28