.andReturn(workerToReturn);
resourceDAOMock.save(workerToReturn);
workerToReturn.checkNotOverlaps();
replay(resourceDAOMock, criterionServiceMock);
// perform actions
WorkerModel workerModel = new WorkerModel(resourceDAOMock,
criterionServiceMock);
workerModel.prepareEditFor(workerToReturn);
workerModel.save();
}