@Test
public void should_have_a_default_type_on_desieralization() throws Exception {

    byte[] content = toByteArray(this.getClass().getResourceAsStream("widget-with-no-type.json"));
    Widget widget = objectMapper.readValue(content, Widget.class);
    assertThat(widget.getType()).isEqualTo("widget");
}