LocalDSInstanceClassFactory icf = new LocalDSInstanceClassFactory(mof);
icf.setMof(mof);
mof.setInstanceClassFactory(LocalDataSourceDeploymentMetaData.class, icf);
LocalDataSourceDeploymentMetaData lds = new LocalDataSourceDeploymentMetaData();
// Set a SecurityMetaData to validate its MO
SecurityMetaData smd = new ApplicationManagedSecurityMetaData();
smd.setDomain("java:/jaas/SomeDomain");
lds.setSecurityMetaData(smd);
ManagedObject mo = mof.initManagedObject(lds, "LocalDataSourceDeploymentMetaData", null);
// Validate the expected property names
Set<String> expectedPropertyNames = new TreeSet<String>();
expectedPropertyNames.addAll(Arrays.asList(ManagedConnectionFactoryDeploymentMetaData_NAMES));