### Question:
Config { @XmlTransient public TextureDef getTextureTrans() { return texture.value; }  @XmlTransient BoundsDef getBoundsTrans(); void setBoundsTrans(final BoundsDef bounds); @XmlTransient ReliefDef getReliefTrans(); void setReliefTrans(final ReliefDef relief); @XmlTransient TextureDef getTextureTrans(); void setTextureTrans(final TextureDef texture); @XmlTransient HeaderDef getHeader(); void setHeader(HeaderDef header); static Config getMinimalConfig(); @XmlElement(name = "bounds")
    @NotNull(message = BoundsWrapper.nullError)
    @AssertValid
    public BoundsWrapper bounds; @XmlElement(name = "relief")
    @AssertValid
    public ReliefWrapper relief; @XmlElement(name = "texture")
    @AssertValid
    public TextureWrapper texture; @XmlElement(name = "meta")
    @AssertValid
    public HeaderDef header; }### Answer:
@Test public void deserializeTest() { try { Config cfg = Serializer.deserialize(Config.class, serialize, schema); OsmDef def = (OsmDef) cfg.getTextureTrans(); def.entities.toArray(); } catch (Exception e) { fail("deserialization failed: " + e); } }
@Test public void deserializeTest2() { try { Config cfg = Serializer.deserialize(Config.class, serialize, true); OsmDef def = (OsmDef) cfg.getTextureTrans(); def.entities.toArray(); } catch (Exception e) { fail("deserialization failed: " + e); } }