Response resp = restService.getFormItem("somePackage", "MY_FORM_ITEM_ID", context);
EasyMock.verify(formService, context);
Object entity = assertXmlOkResponse(resp);
assertTrue("entity should be of type ListFormsItemsDTO", entity instanceof ListFormsItemsDTO);
ListFormsItemsDTO dto = (ListFormsItemsDTO) entity;
List<FormItemDefDTO> items = dto.getFormItem();
assertNotNull("items shouldn't be null", items);
assertFalse("items shouldn't be empty", items.isEmpty());
assertEquals("items size should be 1 but is " + items.size(), items.size(), 1);
}