InitialNaming.setNameSpace(namespace);
InitialNaming.bind(DeviceManager.NAME, StubDeviceManager.INSTANCE);
// Build a plugin descriptor that is sufficient for the FileSystemPlugin to
// configure file system types for testing.
DummyPluginDescriptor desc = new DummyPluginDescriptor(true);
DummyExtensionPoint ep = new DummyExtensionPoint("types", "org.jnode.fs.types", "types");
desc.addExtensionPoint(ep);
for (FSType fsType : FSType.values()) {
DummyExtension extension = new DummyExtension();
DummyConfigurationElement element = new DummyConfigurationElement();
element.addAttribute("class", fsType.getFsTypeClass().getName());
extension.addElement(element);