} catch (NamingException ex) {
throw (IOException) new IOException().initCause(ex);
}
factory.setTestCase(testCase);
DeviceFinder deviceFinder = new FloppyControllerFinder();
StubDeviceManager.INSTANCE.removeAll();
StubDeviceManager.INSTANCE.add(deviceFinder, new FloppyDeviceToDriverMapper());
FloppyDriver driver = (FloppyDriver) findDriver(deviceFinder, "fd0");