I've added expectation for a method like this,
expect(locationManager.isLocationSettingsEnabled(anyObject(FragmentActivity.class))).andReturn(isLocationEnabled).anyTimes();
replay(locationManager);
But when I add, expectation for one more method(mentioned below) after replay, the first method is reset automatically.
expect(locationManager.isNotificationSettingsEnabled(anyObject(FragmentActivity.class))).andReturn(isNotificationsEnabled).anyTimes();
I would like to know how to add one more expectation without resetting it.