WICKET-5686 @Inject should require the bean dependency instead of setting null

Make fields annotated with @Inject required (Spring)

(cherry picked from commit ee4ebba656ceaa3f55f74158e681a4b46b339c74)
WICKET-5686 @Inject should require the bean dependency instead of setting null

Add test case for Guice

(cherry picked from commit f5ce3f27cfaf9a0ece3f6c0c203cde578337d8fc)