ObjectNumberNode extends AbstractNumberNode { @Override public NodeKind getKind() { return NodeKind.OBJECT_NUMBER_VALUE; } ObjectNumberNode(final Number number, final StructNodeDelegate structNodeDelegate); @Override NodeKind getKind(); @Override VisitResult acceptVisitor(final JsonNodeVisitor visitor);  }
@Test public void test() throws IOException { final double value = 10.87463D; final NodeDelegate del = new NodeDelegate(13, 14, Hashing.sha256(), null, 0, null); final StructNodeDelegate strucDel = new StructNodeDelegate(del, Fixed.NULL_NODE_KEY.getStandardProperty(), Fixed.NULL_NODE_KEY.getStandardProperty(), Fixed.NULL_NODE_KEY.getStandardProperty(), 0L, 0l); final ObjectNumberNode node = new ObjectNumberNode(value, 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 ObjectNumberNode node2 = (ObjectNumberNode) NodeKind.OBJECT_NUMBER_VALUE.deserialize(new DataInputStream(in), node.getNodeKey(), null, pageWriteTrx); check(node2); }