repNode2GB.setAttribute("TargetNodes", new NodeInfo[] {primaryNode});
loadAndStart(kernel2, repNode2Name, repNode2GB);
loadAndStart(kernel2, node2Name, node2GB);
repNode2 = (ReplicationMember) repNode2GB.getTarget();
Node node = (Node) node2GB.getTarget();
// The second ServerNode joins the first one.
node.join(primaryNode);
// Sets the topology.
Topology topology = new Topology();
PathWeight weight = new PathWeight(10);
NodePath path = new NodePath(primaryNode, secondaryNode, weight, weight);