### Question:
AttributeElements { public List<AttributeElement> getElements() { return elements; } @JsonCreator  AttributeElements(@JsonProperty("elements") List<AttributeElement> elements); List<AttributeElement> getElements(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void shouldDeserialize() throws Exception { final AttributeElements elements = readObjectFromResource("/md/attributeElements.json", AttributeElements.class); assertThat(elements, is(notNullValue())); final List<AttributeElement> elementsList = elements.getElements(); assertThat(elementsList, is(notNullValue())); assertThat(elementsList, hasSize(3)); }