@Test public void jaxbContentTest() throws Exception { Assume.assumeFalse(getType().equals(TestType.YAML)); ContentImpl content = new ContentImpl(); content.setId(23); Map<String, Object> map = new HashMap<String, Object>(); map.put("life", new Integer(23)); map.put("sick", new Integer(45)); byte [] bytes = ContentMarshallerHelper.marshallContent(null, map, null); content.setContent(bytes); JaxbContent jaxbContent = new JaxbContent(content); JaxbContent copyJaxbContent = testRoundTrip(jaxbContent); Assertions.assertThat(jaxbContent).isEqualToComparingFieldByFieldRecursively(copyJaxbContent); }