reset(resource, applicationContextMock);
expect(resource.getInputStream()).andReturn(new ByteArrayInputStream("<MessageDetail><message>FooBar</message></MessageDetail>".getBytes())).once();
expect(applicationContextMock.getBean("soapFaultValidator", SoapFaultValidator.class)).andReturn(soapFaultValidator).once();
expect(applicationContextMock.getBean(TestListeners.class)).andReturn(new TestListeners()).once();
expect(applicationContextMock.getBean(TestActionListeners.class)).andReturn(new TestActionListeners()).once();
expect(applicationContextMock.getBeansOfType(SequenceBeforeTest.class)).andReturn(new HashMap<String, SequenceBeforeTest>()).once();
expect(applicationContextMock.getBeansOfType(SequenceAfterTest.class)).andReturn(new HashMap<String, SequenceAfterTest>()).once();
replay(resource, applicationContextMock);