@Test
public void testDeliverRoleReplyNonePending() {

    // nothing pending 
    expect(sw.channel.close()).andReturn(null);
    replay(sw.channel);
    sw.deliverRoleReply(1, Role.MASTER);
    verify(sw.channel);
    assertEquals(0, sw.pendingRoleRequests.size());
}