*
*/
@SuppressWarnings("unchecked")
public void testDSMetaDataManagedObjectFactoryInit()
{
ManagedObjectFactory mof = ManagedObjectFactory.getInstance();
DSMetaData dsmd = new DSMetaData();
LocalDataSourceMetaData ds = new LocalDataSourceMetaData();
XADataSourceMetaData xads = new XADataSourceMetaData();
ArrayList<ConnMetaData> deployments = new ArrayList<ConnMetaData>();
deployments.add(ds);
deployments.add(xads);
dsmd.setDeployments(deployments);
ManagedObject mo = mof.initManagedObject(dsmd, null, null);
// Validate the expected properties
Map<String, ManagedProperty> propsMap = mo.getProperties();
assertEquals(2, propsMap.size());
log.info("DSMetaData properties: "+propsMap);