# How do I create/get a model when doing a controller unit test?

**URL:** <https://discuss.emberjs.com/t/how-do-i-create-get-a-model-when-doing-a-controller-unit-test/6272>\
**Category:** Testing\
**Created:** [September 15, 2014, 10:25pm UTC](https://discuss.emberjs.com/t/how-do-i-create-get-a-model-when-doing-a-controller-unit-test/6272 "2014-09-15T22:25:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/taylor/32/15790_2.png) [@taylor](https://discuss.emberjs.com/u/taylor)\
**Post date:** [September 15, 2014, 10:25pm UTC](https://discuss.emberjs.com/t/how-do-i-create-get-a-model-when-doing-a-controller-unit-test/6272/1 "2014-09-15T22:25:40Z")

</div>

I’m using Ember CLI and am in the middle of writing unit tests. I’m using:

```
moduleFor('controller:credit', ....

```

in my test I need a instance of my model.

How do i get an instance of my model??
