### Question:
ErrorCollection { public List<Error> getErrors() { return errors; } ErrorCollection();  ErrorCollection(List<Error> errors); List<Error> getErrors(); String getType();  }### Answer:
@Test public void load() throws Exception { String json = TestSupport.load("errors.json"); final ErrorCollection errors = mapper.readValue(json, ErrorCollection.class); assertTrue(errors.getErrors().size() == 2); }