Agree again. I would suggest to get Foo reference in the test and obtain its attributes to make sure the CustomInjectionPoint is used.