IOFSwitch sw2 = createMock(IOFSwitch.class);
setupSwitchForAddSwitch(sw2, 2L, null, fr2b);
sw2.clearAllFlowMods();
expectLastCall().once();
reset(switchListener);
switchListener.switchActivated(2L);
expectLastCall().once();
switchListener.switchPortChanged(2L, sw2p1, PortChangeType.DELETE);
switchListener.switchPortChanged(2L, sw2p1Changed, PortChangeType.ADD);
expectLastCall().once();
replay(sw2);