public class EventUnmarshallerTest extends UnmarshallerTestCase {
@Test
public void toModel() throws Exception {
List<Event> events = new EventUnmarshaller().toModels(loadFile("/events/events.json"));
Event event = events.get(0);
assertThat(event.getId(), is("10"));
assertThat(event.getName(), is("foo"));
assertThat(event.getDescription(), is("desc"));
assertThat(event.getCategory(), is("categ"));
final Date expectedDate = new SimpleDateFormat("yyyy-MM-dd'T'kk:mm:ssZZZZ").parse("2009-12-25T15:59:23+0000");
assertThat(event.getDate(), is(expectedDate));
}