i am a bit confused here  isn t this equivalent to line did mock execute get called  did node maintenance get set  the other thing i notice  i think  is that this test and the test above  l are very similar except for the values returned by the mocks  have you considered creating a helper function that these two can call after setting up the mocks 