{
MockClassLoadingMetaData a = new MockClassLoadingMetaData("a");
KernelControllerContext contextA = install(a);
try
{
MockClassLoaderPolicyModule module = assertModule(contextA);
assertEquals("a", module.getName());
assertEquals(Version.DEFAULT_VERSION, module.getVersion());
assertNull(module.getDomainName());
assertNull(module.getParentDomainName());
assertNull(module.getExportAll());
assertNull(module.getIncluded());
assertNull(module.getExcluded());
assertNull(module.getExcludedExport());
assertFalse(module.isImportAll());
assertTrue(module.isJ2seClassLoadingCompliance());
ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
Capability capability = factory.createModule("a");
assertEquals(Collections.singletonList(capability), module.getCapabilities());
assertNull(module.getRequirements());
}
finally
{
uninstall(contextA);
}