Updating Associated Metadata Provider to follow the existing pattern.

cc @dougbu @rynowak 
again following the pattern we had in ModelMetadataTests. 
```should try to test in all environments unless absolutely required``` 
 we do not follow the same guidance everywhere, use of Mock makes the test smaller and more readable.