FELIX-4290 Commit a slightly simpler fix than Pierre proposed and his test, moved into the existing ComponentFactory test class

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1535647 13f79535-47bb-0310-9956-ffa450edef68