return JMock2TestPluginTest.this.mockery3;
}
};
mockery.checking(new Expectations() {{
allowing(ctx).getTest();
will(returnValue(new TestInstance(test)));
one(ctx).setAttribute(with("org.jmock.Mockery"), with(any(Mockery.class)));
}});
assertNull(test.get());
plugin.prepareTestInstance(ctx);
assertNotNull(test.get());