You're missing the verify step that tells JMock that your test is finished and it should close off any outstanding checks. Call assertIsSatisfied()
on your mock context.
Alternatively, switch from using Mockery context = new JUnit4Mockery();
to using @Rule public JUnitRuleMockery context = new JUnitRuleMockery();
. This will cut out some of that sort of boilerplate for you.