@Test(timeout = 10000)
public void testNodeOperationException() throws Exception {
Node node = new Node(_zk.getInteractionProtocol(), new LuceneServer());
node.start();
NodeOperation operation1 = mock(NodeOperation.class, withSettings().serializable());
NodeOperation operation2 = mock(NodeOperation.class, withSettings().serializable());
SerializableCountDownLatchAnswer answer = new SerializableCountDownLatchAnswer(2);
when(operation1.execute((NodeContext) notNull())).thenAnswer(answer);
when(operation2.execute((NodeContext) notNull())).thenAnswer(answer);
_protocol.addNodeOperation(node.getName(), operation1);
_protocol.addNodeOperation(node.getName(), operation2);
answer.getCountDownLatch().await();
node.shutdown();