ObjectNullNode extends AbstractNullNode { @Override public NodeKind getKind() { return NodeKind.OBJECT_NULL_VALUE; } ObjectNullNode(final StructNodeDelegate structNodeDelegate); @Override NodeKind getKind(); @Override VisitResult acceptVisitor(JsonNodeVisitor visitor);  }
@Test public void test() throws IOException { final NodeDelegate del = new NodeDelegate(13, 14, Hashing.sha256(), null, 0, SirixDeweyID.newRootID()); final StructNodeDelegate strucDel = new StructNodeDelegate(del, Fixed.NULL_NODE_KEY.getStandardProperty(), Fixed.NULL_NODE_KEY.getStandardProperty(), Fixed.NULL_NODE_KEY.getStandardProperty(), 0L, 0L); final ObjectNullNode node = new ObjectNullNode(strucDel); node.setHash(node.computeHash()); check(node); final ByteArrayOutputStream out = new ByteArrayOutputStream(); node.getKind().serialize(new DataOutputStream(out), node, pageTrx); final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); final ObjectNullNode node2 = (ObjectNullNode) NodeKind.OBJECT_NULL_VALUE.deserialize(new DataInputStream(in), node.getNodeKey(), null, pageTrx); check(node2); }