@Test
public void Should_makeDumpOfMessageProcessingSequenceOnInitialization()
        throws Exception {

    IObject stateMock = mock(IObject.class);
    IObject argsMock = mock(IObject.class);
    IObject dumpMock = mock(IObject.class);
    IMessageProcessor processorMock = mock(IMessageProcessor.class);
    IMessageProcessingSequence sequenceMock = mock(IMessageProcessingSequence.class);
    IResolveDependencyStrategy makeDumpStrategy = mock(IResolveDependencyStrategy.class);
    IOC.register(Keys.getOrAdd("make dump"), makeDumpStrategy);
    when(makeDumpStrategy.resolve(same(sequenceMock), same(argsMock))).thenReturn(dumpMock);
    when(processorMock.getSequence()).thenReturn(sequenceMock);
    new ReSendRestoringSequenceRecoverStrategy().init(stateMock, argsMock, processorMock);
    verify(stateMock).setValue(eq(IOC.resolve(Keys.getOrAdd("info.smart_tools.smartactors.iobject.ifield_name.IFieldName"), "sequenceDump")), same(dumpMock));
}