package com.github.nsnjson;

import com.fasterxml.jackson.databind.node.*;

import java.util.*;

public class AbstractFormatTest {

    protected static NullNode getNull() {
        return NullNode.getInstance();
    }

    protected static BooleanNode getBooleanTrue() {
        return BooleanNode.getTrue();
    }

    protected static BooleanNode getBooleanFalse() {
        return BooleanNode.getFalse();
    }

    protected static NumericNode getNumberInt() {
        return new IntNode(new Random().nextInt());
    }

    protected static NumericNode getNumberLong() {
        return new LongNode(new Random().nextLong());
    }

    protected static NumericNode getNumberDouble() {
        return new DoubleNode(new Random().nextDouble());
    }

    protected static TextNode getEmptyString() {
        return new TextNode("");
    }

    protected static TextNode getString() {
        return new TextNode(UUID.randomUUID().toString().replaceAll("-", ""));
    }

}
@@ -22,16 +22,68 @@
 njson;%0A%0A
+import com.fasterxml.jackson.databind.ObjectMapper;%0A
 import c
@@ -1019,9 +1019,230 @@
 %0A    %7D%0A%0A
+    protected static ArrayNode getEmptyArray() %7B%0A        return new ObjectMapper().createArrayNode();%0A    %7D%0A%0A    protected static ObjectNode getEmptyObject() %7B%0A        return new ObjectMapper().createObjectNode();%0A    %7D%0A%0A
 %7D

Implement two useful methods in AbstractFormatTest.