assertEquals(1, nodeqQueue.size());
}
publisShards(nodes, nodeQueues);
// add node and then balance again
Node node3 = Mocks.mockNode();
NodeQueue nodeQueue3 = Mocks.publisNode(_protocol, node3);
assertEquals(0, nodeQueue3.size());
BalanceIndexOperation balanceOperation = new BalanceIndexOperation(_indexName);
MasterContext spiedContext = spy(_context);
doThrow(new RuntimeException("test-exception")).when(spiedContext).getFileSystem(any(IndexMetaData.class));