SmilResponseImpl implements SmilResponse { @XmlElement(type = SmilImpl.class, required = true) @Override public Smil getSmil() { return smil; } private  SmilResponseImpl();  SmilResponseImpl(Smil smil);  SmilResponseImpl(Smil smil, SmilObject entity);  SmilResponseImpl(Smil smil, SmilObject[] entities); @XmlElement(type = SmilImpl.class, required = true) @Override Smil getSmil(); @Override int getEntitiesCount(); @Override SmilObject getEntity(); @Override SmilObject[] getEntities(); @Override String toXml(); static SmilResponse fromXml(String smilResponseXml);  }
@Test public void testGetSmil() { Smil smil = new SmilImpl(); SmilResponse response = new SmilResponseImpl(smil); assertEquals(smil, response.getSmil()); }