DataWrapper implements ToJsonCapable { @NotNull public final Object getObj() { return obj; } protected  DataWrapper();  DataWrapper(@NotNull final Object obj); @NotNull final Object getObj(); @Override final JsonStructure toJson();  }
@Test public final void testUnmarshal() throws Exception { final DataWrapper testee = unmarshal(XML_PREFIX + "<Wrapper><Base64>SGVsbG8gd29ybGQh</Base64></Wrapper>", DataWrapper.class, Base64Data.class); assertThat(testee).isNotNull(); assertThat(testee.getObj()).isInstanceOf(Base64Data.class); }