COR-339: Test failures and errors with Oracle java >= 1.7.0_25

https://jira.exoplatform.org/browse/COR-339