NullNode extends AbstractNullNode { @Override public NodeKind getKind() { return NodeKind.NULL_VALUE; } NullNode(final StructNodeDelegate structNodeDelegate); @Override NodeKind getKind(); @Override VisitResult acceptVisitor(final JsonNodeVisitor visitor); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@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(), 2L, 5L, 0L, 0L); final NullNode node = new NullNode(strucDel); node.setHash(node.computeHash()); check(node); final ByteArrayOutputStream out = new ByteArrayOutputStream(); node.getKind().serialize(new DataOutputStream(out), node, pageWriteTrx); final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); final NullNode node2 = (NullNode) NodeKind.NULL_VALUE.deserialize(new DataInputStream(in), node.getNodeKey(), null, pageWriteTrx); check(node2); }