BooleanNode extends AbstractBooleanNode { @Override public NodeKind getKind() { return NodeKind.BOOLEAN_VALUE; } BooleanNode(final BigInteger hashCode, final boolean boolValue, final StructNodeDelegate structNodeDelegate);  BooleanNode(final boolean boolValue, final StructNodeDelegate structNodeDelegate); @Override NodeKind getKind(); @Override VisitResult acceptVisitor(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(), 16L, 15L, 0L, 0L); final BooleanNode node = new BooleanNode(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 BooleanNode node2 = (BooleanNode) NodeKind.BOOLEAN_VALUE.deserialize(new DataInputStream(in), node.getNodeKey(), null, pageTrx); check(node2); }