Use "swear in" in a sentence

1. You'll swear in a court of law under penalty of perjury?

2. Bailiffs also escort prisoners into and out of the courtroom, physically handle evidence, swear in witnesses, and make sure judges have the appropriate case files