Java dependency Injection (test)