jaxbSimulation(dto, ListFormsItemsDTO.class, ListFormsItemsDTO.RELATED_CLASSES);
}
public void testListFormsItemsDTOManyItems() throws Exception {
HashMap<String, FormItemRepresentation> items = new HashMap<String, FormItemRepresentation>();
FormRepresentation form = RESTAbstractTest.createMockForm("myForm", "myParam1", "myParam2", "myParam3");
Iterator<FormItemRepresentation> iter = form.getFormItems().iterator();
items.put("name1", iter.next());
items.put("name2", iter.next());
items.put("name3", iter.next());
items.put("name4", iter.next());
ListFormsItemsDTO dto = new ListFormsItemsDTO(items);