Fixed regexp for Java 6 runtime.
Added toString for debugging.
Improved test so that it does not fail
(if violations plugin is missing).