INT-3253: Get rid of EasyMock dependency

JIRA: https://jira.springsource.org/browse/INT-3253