To mock endpoints in SAP Cloud Integration/CPI you need to set up the Cloud Connector to point to the Figaf system.
If you deploy in SAP BTP there is no need to set up Cloud Connector because it is hosted on a public URL.
This guide helps you set it up the Cloud Connector to Figaf to your CPI system.
1) First you need to install the Cloud Connector. See the guide. You need to connect with the subaccount where your SAP CPI system is hosted.
2) Expose your internal Figaf Host with an external HostPort. You will need to expose all url Paths to it.
3) Now test you can create a connection and reach the Figaf system. It is best to a new Destination from your BTP Cockpit and see if you can reach the Figaf server.
4) In the configuration of the Figaf system you need to add the following configurations.
The host in the above example would then be http://sapserv02:8000/irt/api/cpi-testing-mock-data/step/
Now you should be able to run test cases that are Mocked by Figaf system. To make sure the test cases have all the information needed.
Notice you can only have one configuration to Figaf, but you will always be able to set up the same value into different sub-accounts.