@Test
public void tryConvertJSONIntoModelWithAdditionalSerializer_shouldThrowNoException() throws Exception {
NullModel model = createTestModel();
ModelWrapper wrapper = ModelWrapper.wrap(model);
wrapper.addOpenEngSBModelEntry(new OpenEngSBModelEntry("number", 42, Integer.class));
String result = mapper.writeValueAsString(model);
NullModel other = JsonUtils.convertObject(result, NullModel.class);
List<OpenEngSBModelEntry> entries = ModelWrapper.wrap(other).getOpenEngSBModelTail();
assertThat(model.getId(), is(other.getId()));
assertThat(model.getValue(), is(other.getValue()));
assertThat(model.getSubs().size(), is(other.getSubs().size()));
assertThat(model.getSubs().get(0).getId(), is(other.getSubs().get(0).getId()));
assertThat(model.getSubs().get(0).getName(), is(other.getSubs().get(0).getName()));
assertThat(model.getSubs().get(1).getId(), is(other.getSubs().get(1).getId()));
assertThat(model.getSubs().get(1).getName(), is(other.getSubs().get(1).getName()));
assertThat(entries.size(), is(3));
assertThat(entries.contains(new OpenEngSBModelEntry("test", "test", String.class)), is(true));
assertThat(entries.contains(new OpenEngSBModelEntry("test2", "test2", String.class)), is(true));
assertThat(entries.contains(new OpenEngSBModelEntry("number", 42, Integer.class)), is(true));
}