Perform unit test for CFormModel.

I have a model that extends from the CFormModel. Model loads the data from external data source. I want to build a unit test for that. There is a doc. guide to perform unit test . But how can i impliment this with external data sources like DynamoDB.