assertEquals(node.getNext(), node1);
assertEquals(node.getPrevious(), node2);
}
public void testPerm3() throws RemoteException {
Node node = new Node("node0");
Node node1 = new Node("node1");
Node node2 = new Node("node2");
// "node1" "node2" "node0"
assertTrue(node1.join(node2));
assertTrue(node1.join(node));
this.testOrder(node, node2, 3);
assertEquals(node2.getNext(), node);
assertEquals(node2.getPrevious(), node1);
assertEquals(node1.getNext(), node2);
assertEquals(node1.getPrevious(), node);
assertEquals(node.getNext(), node1);