ReSendToChainRecoverStrategy implements IRecoverStrategy { @Override public void init(final IObject state, final IObject args, final IMessageProcessor processor) throws RecoverStrategyInitializationException { chainChoiceStrategy.init(state, args); } ReSendToChainRecoverStrategy(final IRecoveryChainChoiceStrategy chainChoiceStrategy); @Override void init(final IObject state, final IObject args, final IMessageProcessor processor); @Override void reSend(final IObject state);  }
@Test public void Should_initializeChainChoiceStrategy() throws Exception { IObject stateMock = mock(IObject.class); IObject argsMock = mock(IObject.class); new ReSendToChainRecoverStrategy(recoveryChainChoiceStrategy).init(stateMock, argsMock, mock(IMessageProcessor.class)); verify(recoveryChainChoiceStrategy).init(same(stateMock), same(argsMock)); }