I wasn't concerned with the Domains, I didn't have any attached. The test case was simply changing the status from shared to local or vice versa, within the constraints defined in the link shared by Fred.