// we should have 4 folders in our working folder now.
File shardsFolder = node.getContext().getShardManager().getShardsFolder();
assertEquals(SHARD_COUNT, shardsFolder.list().length);
ShardUndeployOperation undeployOperation = new ShardUndeployOperation(Arrays.asList(protocol.getNodeShards(
node.getName()).iterator().next()));
protocol.addNodeOperation(node.getName(), undeployOperation);
TestUtil.waitUntilNodeServesShards(protocol, node.getName(), 3);
// Thread.sleep(2000);
assertEquals(3, shardsFolder.list().length);