public void shouldCreateChecklist() throws Exception {
// GIVEN
InputStream json = getTestDataFromFile("checklist.json");
// WHEN
Checklist checklist = trelloObjFactory.createObject(new TypeToken<Checklist>(){}, json);
// THEN
assertEquals("4f92b89ea73738db6cdd4ed7", checklist.getId());
assertEquals("Checklist", checklist.getName());
assertEquals("4f92b80ba73738db6cdd4309", checklist.getIdBoard());
assertEquals(3, checklist.getCheckItems().size());
Checklist.CheckItem firstCheckItem = checklist.getCheckItems().get(0);
assertEquals("First checkitem", firstCheckItem.getName());
assertEquals("check", firstCheckItem.getType());
assertEquals(8588, firstCheckItem.getPos(), 0);
json.close();