@Test
public void testFromJSON() throws Exception {

    try (InputStream is = getClass().getResourceAsStream("/simpleChecklist.json");
         JsonReader reader = Json.createReader(is)) {
        final JsonObject json = reader.readObject();
        Checklist checklist = Checklist.fromJson("core-tests", manifestUrl, json);
        assertNotNull("checklist should not be null", checklist);
        assertEquals("checklist moduleName", "core-tests", checklist.getModuleName());
        assertEquals("checklist name", "simpleChecklist", checklist.getName());
        assertEquals("checklist jcr prefix", "lapkao", checklist.getJcrNamespaces().get(0).getPrefix());
        assertEquals("checklist json is identical to original", json, checklist.toJson());
    }
}