Well the point is that there are no injection points for the given unproxyable types. So there is no need for injection point resolution to a bean as stated in 3.11 Unproxyable Bean Types:
A bean type must be proxyable if an injection point resolves to a bean: • that requires a client proxy, or • that has an associated decorator, or • that has a bound interceptor. Otherwise, the container automatically detects the problem, and treats it as a deployment problem.
I think the test is OK. |