NoGlobalTitle extends AbstractGlobalTitle { @Override public String getDigits() { return super.digits; } NoGlobalTitle();  NoGlobalTitle(String digits); @Override GlobalTitleIndicator getGlobalTitleIndicator(); @Override String getDigits(); @Override void decode(final InputStream in, final ParameterFactory factory, final SccpProtocolVersion sccpProtocolVersion); @Override void encode(OutputStream out, final boolean removeSpc, final SccpProtocolVersion sccpProtocolVersion);  }
@Test(groups = { "parameter", "functional.encode" }) public void testSerialization() throws Exception { NoGlobalTitle gt = new NoGlobalTitle("9023629581"); ByteArrayOutputStream output = new ByteArrayOutputStream(); XMLObjectWriter writer = XMLObjectWriter.newInstance(output); writer.setIndentation("\t"); writer.write(gt, "NoGlobalTitle", NoGlobalTitle.class); writer.close(); System.out.println(output.toString()); ByteArrayInputStream input = new ByteArrayInputStream(output.toByteArray()); XMLObjectReader reader = XMLObjectReader.newInstance(input); NoGlobalTitle aiOut = reader.read("NoGlobalTitle", NoGlobalTitle.class); assertEquals(aiOut.getDigits(), "9023629581"); }