For example

People who give evidence in court are required to swear an oath that they will tell the truth.