expect(
        Array.from(new (BTreeSet.with(MockStruct))(registry, mockStructSetObj)).map((k) => k.toJSON())
      ).toEqual([
        { int: -1, text: 'b' },
        { int: 1, text: 'b' },