@Test
public void test_doAction() {

    PrintJson printJson = new PrintJson();
    String result = printJson.doAction(resource);
    assertTrue(result.contains("\"sling:resourceType\": \"weretail/components/content/heroimage\""));
    assertTrue(result.contains("\"number\": 123"));
    assertTrue(result.contains("\"multivalue\": ["));
    assertTrue(result.contains("\"v1\","));
    assertTrue(result.contains("\"v2\","));
    assertTrue(result.contains("\"v3\""));
}