Tests for DependencyInjector
Added missing licence headers and JavaDoc comments.