@Test
public void should_serialize_object_into_json_using_serialization_view() throws Exception {

    SimpleObject object = new SimpleObject("id", "Vincent", 1);
    JSONAssert.assertEquals(new String(objectMapper.toJson(object, JsonViewPersistence.class)), "{\"name\":\"Vincent\",\"number\":1}", false);
}