testGetRightMostLeaf() {
    setUpDomTree();

    assertEquals(
        'Should return child3\'s rightmost child', gChildTextNode3b,
        editorNode.getRightMostLeaf(parentNode));
    assertEquals(
        'Should skip ws node', gChildTextNode1,
        editorNode.getRightMostLeaf(childNode1));
    assertEquals(
        'Has no non ws leaves', childNode2,
        editorNode.getRightMostLeaf(childNode2));
    assertEquals(
        'Should return last child', gChildTextNode3b,
        editorNode.getRightMostLeaf(childNode3));
    assertEquals(
        'Has no children', gChildTextNode1,
        editorNode.getRightMostLeaf(gChildTextNode1));

    tearDownDomTree();
  }
Creates a DOM tree and tests that getRightMostLeaf returns proper node