SMPExtensionConverter { @Nullable public static String convertToString (@Nullable final ExtensionType aExtension) { if (aExtension != null && aExtension.getAny () != null) { return XMLWriter.getNodeAsString (aExtension.getAny (), s_aXWS); } return null; } private  SMPExtensionConverter(); @Nullable static String convertToString(@Nullable final ExtensionType aExtension); @Nullable static ExtensionType convert(@Nullable final String sXML);  }
@Test public void testConvertFromExtensionType () { assertNull (SMPExtensionConverter.convertToString ((ExtensionType) null)); assertNull (SMPExtensionConverter.convertToString (new ObjectFactory ().createExtensionType ())); }