@Test
public void testSendRoleRequestMasterNotSupported() {

    LinkedList<OFSwitchImpl> switches = new LinkedList<OFSwitchImpl>();
    
    // a switch that doesn't support role requests
    OFSwitchImpl sw1 = EasyMock.createMock(OFSwitchImpl.class);
    // No support for NX_ROLE
    expect(sw1.getAttribute(IOFSwitch.SWITCH_SUPPORTS_NX_ROLE))
                    .andReturn(false); 
    switches.add(sw1);
    
    replay(sw1);
    roleChanger.sendRoleRequest(switches, Role.MASTER, 123456);
    verify(sw1);
    
    assertEquals(1, switches.size());
}