In a civil trial, you will need to testify. If you refuse, you could be subpoenaed. In this case, you would have to testify truthfully or risk perjuring yourself.