@Test
public void Should_ignoreFeedbackMessagesIfTheEntryIsAlreadyCompleted()
        throws Exception {

    IObject args = IOC.resolve(Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject"),
            ("{" +
                    "'connectionOptionsDependency':'the connection options'," +
                    "'connectionPoolDependency':'the connection pool'," +
                    "'collectionName':'" + collectionName + "'" +
                    "}").replace('\'','"'));
    IObject entryState = IOC.resolve(Keys.getOrAdd("info.smart_tools.smartactors.iobject.iobject.IObject"),
            ("{'completed':true}").replace('\'','"'));
    CheckpointActor actor = new CheckpointActor(args);
    when(feedbackMessageMock.getPrevCheckpointEntryId()).thenReturn("prevId");
    when(storageMock.getEntry("prevId")).thenReturn(entryMock[0]);
    when(entryMock[0].getState()).thenReturn(entryState);
    actor.feedback(feedbackMessageMock);
    verify(entryMock[0]).getState();
    verifyNoMoreInteractions(entryMock[0]);
}