ObjectBooleanNode extends AbstractBooleanNode { @Override public NodeKind getKind() { return NodeKind.OBJECT_BOOLEAN_VALUE; } ObjectBooleanNode(final boolean boolValue, final StructNodeDelegate structNodeDelegate); @Override NodeKind getKind(); @Override VisitResult acceptVisitor(final JsonNodeVisitor visitor);  }
@Test public void test() throws IOException { final boolean boolValue = true; 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 ObjectBooleanNode node = new ObjectBooleanNode(boolValue, 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 ObjectBooleanNode node2 = (ObjectBooleanNode) NodeKind.OBJECT_BOOLEAN_VALUE.deserialize(new DataInputStream(in), node.getNodeKey(), null, pageTrx); check(node2); }