Used @Endpoint inject in tests.