@Test
public void testDeliverRoleRequestNotSupportedNonePending() {

    // nothing pending 
    sw.role = Role.SLAVE;
    expect(sw.channel.close()).andReturn(null);
    replay(sw.channel);
    sw.deliverRoleRequestNotSupported(1);
    verify(sw.channel);
    assertEquals(null, sw.role);
    assertEquals(0, sw.pendingRoleRequests.size());
}