I've tried almost everything to enable 'assert' in my portlet - but my portlet ignores it completely (although the file size increases when using assert statement in the code). The variable MAVEN_OPTS=-ea is also set.
Even a simple statement like 'assert false;' doesn't lead to an assertion.