public void Setup() { _desire = new Mock <ADesire>(); _desire.Setup(x => x.CreateGoal()).Returns(_goal); var intent = new Intention <AnAction, AnAgent, AnEnvironment>(_desire.Object); _result = intent.CreateGoal(); }