### Question:
StyleAction extends Action { public StyleOptions getStyleOptions() { return myStyleOptions; }  @Override StyleAction clone(); StyleOptions getStyleOptions(); @Override int hashCode(); @Override boolean equals(Object obj); static final List<Styles> STYLES_LIST; }### Answer:
@Test public void test() throws JAXBException { StyleAction action = new StyleAction(); action.getStyleOptions().setIconId(22); assertEquals("Set Style", action.toString()); ByteArrayOutputStream output = new ByteArrayOutputStream(); XMLUtilities.writeXMLObject(action, output); StyleAction actual = XMLUtilities.readXMLObject(new ByteArrayInputStream(output.toByteArray()), StyleAction.class); assertEquals("Set Style", actual.toString()); assertEquals(22, actual.getStyleOptions().getIconId()); }