IMocksControl control = EasyMock.createControl();
TestBinding b = new TestBinding();
SystemHandlerChainType shc = createSystemHandlerChain();
Configuration c = control.createMock(Configuration.class);
expect(c.getObject("systemHandlerChain")).andReturn(shc);
ResourceInjector ri = control.createMock(ResourceInjector.class);
ri.inject(EasyMock.isA(SystemHandler.class));
EasyMock.expectLastCall().times(6);
control.replay();
b.configureSystemHandlers(c);
b.injectSystemHandlers(ri);