@Test
public void testRoleChangeNotificationAndShardLeaderStateChangedReleaseReady() throws Exception {

    TestShardManager shardManager = newTestShardManager();
    String memberId = "member-1-shard-default-" + shardMrgIDSuffix;
    shardManager.handleCommand(new RoleChangeNotification(
            memberId, RaftState.Candidate.name(), RaftState.Leader.name()));
    assertFalse(ready.isDone());
    shardManager.handleCommand(new ShardLeaderStateChanged(memberId, memberId,
            mock(DataTree.class), DataStoreVersions.CURRENT_VERSION));
    assertTrue(ready.isDone());
}