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 http://www.yiiframework.com/doc/guide/1.1/en/test.unit . But how can i impliment this with external data sources like DynamoDB.