### Question:
MessageDraft extends AddressedMessage { public void addPojo(String inPojo, MimeType.MIME_TYPES format) throws ConversionException, InvalidParameterException { final Converter converter = ConverterFactory.getConverter(format); if (converter == null) { return; } this.mPartsList.addAll(SequencePartFactory.buildSequence(Collections.singletonList(converter.<Map<String, Object>> convertFrom(inPojo)), null, getApplication())); } MessageDraft(VObject inDest); static List<MessageDraft> createFromPojo(Map<String, Object> inPojo, VObject inRfid, String inAPIKey); void addAudio(String url, boolean streaming, boolean movingEars); void addWebRadio(String url); void addTTS(Map<Lang, String> inTTSMap); void addPage2Browse(String inUrl); void addAudioStreamSecure(String inName, long inPosition); void addChoreography(String url, boolean streaming); void addPalette(Palette inPalette); void addStartInteractive(String inUrl); void addStartInteractive(VObject rfid); void addEndInteractive(); void addStreamId(String inStreamId); void addStreamStop(String inStreamId); void addSetting(String inSetting); void addWaitMs(int nbMs); void addSignature(MessageSignature inSignature); void addPojo(String inPojo, MimeType.MIME_TYPES format); final List<Sequence> getSequenceList(); final List<SequencePart> getSequencePart(); void fillMessageDraft(String inTitle, MessageSignature inSignature, MessageServices.Body[] inBody); void fillMessageDraft(MessageServices.Body... inBody); void addSequences(String[] inSequences, boolean isSecure);  }### Answer:
@Test public void addPojoTest() throws InvalidParameterException, ConversionException { final String command = "<map><type><string>expression</string></type>" + "<modality><string>net.violet.tts.en</string></modality>" + "<text><string>Hello world!</string></text></map>"; final MessageDraft theMessage = new MessageDraft(getPrivateObject()); theMessage.addPojo(command, MimeType.MIME_TYPES.XML); final List<SequencePart> list = theMessage.getSequencePart(); Assert.assertEquals(1, list.size()); final SequencePart part = list.get(0); Assert.assertTrue(part instanceof Expression); final Expression expr = (Expression) part; final Map<String, Object> pojo = expr.getPojo(); Assert.assertEquals(3, pojo.size()); Assert.assertEquals("Hello world!", pojo.get("text")); Assert.assertEquals("expression", pojo.get("type")); Assert.assertEquals("net.violet.tts.en", pojo.get("modality")); }