@Test
public void testTransformCopyToArray(TestContext context) {

    String input = "{\n" +
            "  \"rating\": {\n" +
            "    \"primary\": {\n" +
            "      \"value\": 3\n" +
            "    }\n" +
            "  }\n" +
            "}";
    JsonObject output = buildRecordsOutput(new JsonObject(input));
    context.assertEquals(output, JoltTransformer.transform(input, copyToArraySpec).result());
    String anotherInput = "{\"test\": 234, \"foo\": \"bar\"}";
    JsonObject anotherOutput = buildRecordsOutput(new JsonObject(anotherInput));
    context.assertEquals(anotherOutput, JoltTransformer.transform(anotherInput, copyToArraySpec).result());
    JsonObject complexOutput = buildRecordsOutput(new JsonObject(COMPLEX_INPUT_JSON));
    context.assertEquals(complexOutput, JoltTransformer.transform(COMPLEX_INPUT_JSON, copyToArraySpec).result());
}