Move to easymock 2.2.2 to solve test failures

Under MacOSX Lion with JDK 1.7.0_07, some tests failed because
of easymock class extensions. Moving to 2.2.2 solves the issue.
Added BOM aware reading to StreamUtil