Answer:
a Deposition.
Step-by-step explanation:
A deposition is the sworn testimony of an out-of-court witness. It can be used as one of the process of discovery to collect information, and can also be used at court under specific circumstances.
A person being deposed is called the "deponent." Depositions usually may not include the court directly. The procedure is established by individual parties and supervised by them.
The only people present at a deposition are generally the deponent, lawyers for all participants and an individual authorized to execute oaths.