### Question:
Message extends MessageOrPresence<MessageBuilder> implements MessageView { @Deprecated public Body addBody(String language, String body) { language = Stanza.determineLanguage(this, language); removeBody(language); Body messageBody = new Body(language, body); addExtension(messageBody); return messageBody; } @Deprecated // TODO: Remove in Smack 4.5.  Message(); @Deprecated // TODO: Remove in Smack 4.5.  Message(Jid to); @Deprecated // TODO: Remove in Smack 4.5.  Message(Jid to, Type type); @Deprecated // TODO: Remove in Smack 4.5.  Message(Jid to, String body); @Deprecated // TODO: Remove in Smack 4.5.  Message(String to, String body); @Deprecated // TODO: Remove in Smack 4.5.  Message(Jid to, ExtensionElement extensionElement);   Message(MessageBuilder messageBuilder);  Message(Message other); @Override Type getType(); @Deprecated // TODO: Remove in Smack 4.5. void setType(Type type); @Deprecated // TODO: Remove when stanza builder is ready. void setSubject(String subject); @Deprecated // TODO: Remove when stanza builder is ready. Subject addSubject(String language, String subject); @Deprecated // TODO: Remove when stanza builder is ready. boolean removeSubject(String language); @Deprecated // TODO: Remove when stanza builder is ready. boolean removeSubject(Subject subject); @Deprecated // TODO: Remove when stanza builder is ready. void setBody(CharSequence body); @Deprecated // TODO: Remove when stanza builder is ready. void setBody(String body); @Deprecated // TODO: Remove when stanza builder is ready. Body addBody(String language, String body); @Deprecated // TODO: Remove when stanza builder is ready. boolean removeBody(String language); @Deprecated // TODO: Remove when stanza builder is ready. boolean removeBody(Body body); @Deprecated // TODO: Remove when stanza builder is ready. void setThread(String thread); @Override String getElementName(); @Override MessageBuilder asBuilder(); @Override MessageBuilder asBuilder(String id); @Override MessageBuilder asBuilder(XMPPConnection connection); @Override String toString(); @Override XmlStringBuilder toXML(XmlEnvironment enclosingXmlEnvironment); @Deprecated @Override Message clone(); static final String ELEMENT; static final String BODY; }### Answer:
@Test(expected = NullPointerException.class) public void setNullMessageBodyTest() { StanzaBuilder.buildMessage() .addBody(null, null) .build(); }