code: function checkMocksCalled(createResult) {
          expect(createResult).to.deep.equal(createResult);
  
          sinon.assert.calledOnce(mockDatasetManager.create);
          sinon.assert.calledWith(mockDatasetManager.create, sinon.match(mockDataToCreate));
        }
docs: Verifying the mocks were called with the correct parameters.