Demo of several ways to use dependency injection in AngularJS and how to properly unit test it.