Node node = mock(Node.class);
String nodeName = "node1";
when(node.getName()).thenReturn(nodeName);
InteractionProtocol protocol = _zk.getInteractionProtocol();
NodeQueue nodeQueue = protocol.publishNode(node, new NodeMetaData());
NodeOperation nodeOperation1 = mock(NodeOperation.class, withSettings().serializable().name("a"));
NodeOperation nodeOperation2 = mock(NodeOperation.class, withSettings().serializable().name("b"));
OperationId operation1Id = protocol.addNodeOperation(nodeName, nodeOperation1);
OperationId operation2Id = protocol.addNodeOperation(nodeName, nodeOperation2);