### Question:
LabelAction extends Action { public LabelOptions getLabelOptions() { return myLabelOptions; }  @Override LabelAction clone(); @Override boolean equals(Object obj); LabelOptions getLabelOptions(); @Override int hashCode(); void setLabelOptions(LabelOptions options);  }### Answer:
@Test public void testSerialization() throws JAXBException { LabelAction action = new LabelAction(); action.getLabelOptions().setSize(10); ByteArrayOutputStream output = new ByteArrayOutputStream(); XMLUtilities.writeXMLObject(action, output); LabelAction actual = XMLUtilities.readXMLObject(new ByteArrayInputStream(output.toByteArray()), LabelAction.class); assertEquals(10, actual.getLabelOptions().getSize()); }