* Verify that SourceFactory registers Privileged namespaces based on loader information.
* SourceLoaders that implement PrivilegedNamespaceSourceLoaders are considered for determining if a namespace is privileged.
* Namespaces served by SourceLoaders that do not implement PrivilegedNamespaceSourceLoaders are not privileged.
*/
public void testPrivilegedNamespaceSourceLoadersAreRegisteredWithConfigAdapter(){
SourceLoader friendlyLoader = new FriendlySourceLoader();
SourceLoader selectiveLoader = new SelectiveSourceLoader();
SourceLoader unprivilegedLoader = new UnprivilegedSourceLoader();
List<SourceLoader> loaders = Lists.newArrayList(friendlyLoader, selectiveLoader, unprivilegedLoader);
SourceFactory sf = new SourceFactory(loaders);
assertEquals(Sets.newHashSet("VIP", "Guest", "Friend1", "Friend2", "Custom_1","Custom_2"), sf.getNamespaces());
ConfigAdapter c = Aura.getConfigAdapter();