Validates method referenced in <bean> "factory-method" is public.