Junit tests for DependencyInjectionPool class