Heap h = new MutableHeap("");
h.beginUpdate();
ScalarProjection<Integer> scalar = ProjectorFactory.intProjector.project(h.ensureRoot(NodeType.SCALAR));
scalar.set(1);
scalar.set(null);
UpdateBlock block = h.endUpdate();
assertEquals(3, block.list().size());
assertTrue(block.list().get(0) instanceof InstallRoot);
assertTrue(block.list().get(1) instanceof SetScalar);
assertEquals(1, ((SetScalar) block.list().get(1)).getValue());
assertTrue(block.list().get(2) instanceof SetScalar);
assertEquals(null, ((SetScalar) block.list().get(2)).getValue());
}