expect(sw.getId()).andReturn(1L).anyTimes();
expect(sw.getStringId()).andReturn(HexString.toHexString(1L)).anyTimes();
sw.cancelAllStatisticsReplies();
expectLastCall().once();
IOFSwitchListener listener = createMock(IOFSwitchListener.class);
listener.switchRemoved(1L);
expectLastCall().once();
controller.addOFSwitchListener(listener);
replay(sw, listener);
controller.switchDisconnected(sw);
controller.processUpdateQueueForTesting();