Any person, other than the assignor, liable to be examined is subject to the same consequences in case of neglect to attend or refusal to disclose the matters in respect of which the person may be examined or to make production as a witness in an action in the Superior Court of Justice.