MockFloppyDeviceFactory factory = (MockFloppyDeviceFactory) FSDriverUtils.getFloppyDeviceFactory();
MockFloppyDeviceFactory factory; try { factory = (MockFloppyDeviceFactory) FloppyDriverUtils.getFloppyDeviceFactory(); } catch (NamingException ex) { throw (IOException)new IOException().initCause(ex); }
    public void init(TestConfig config, MockObjectTestCase testCase) throws IOException    {        // set the current testCase for our factory        MockFloppyDeviceFactory factory = (MockFloppyDeviceFactory)                                 FSDriverUtils.getFloppyDeviceFactory();        factory.setTestCase((MockObjectTestCase) testCase);                DeviceFinder deviceFinder = new FloppyControllerFinder();                StubDeviceManager.INSTANCE.removeAll();                        StubDeviceManager.INSTANCE.add(deviceFinder, new FloppyDeviceToDriverMapper());                FloppyDriver driver = (FloppyDriver) findDriver(deviceFinder, "fd0");        log.debug("findDriver->"+driver);        init(null, driver, null);                        }