void () { ImmutableText a = ImmutableText.valueOf(StringUtil.repeat("a", 10 * 64)); ImmutableText b = ImmutableText.valueOf(StringUtil.repeat("b", 20 * 64)); ImmutableText c = ImmutableText.valueOf(StringUtil.repeat("c", 20 * 64)); ImmutableText ab = a.insert(a.length(), b); ImmutableText abc = ab.insert(ab.length(), c); ImmutableText x = ImmutableText.valueOf(StringUtil.repeat("x", 64)); ImmutableText xabc = abc.insert(0, x); assertBalanced(xabc.myNode); }