MaryData { public Object getData() { if (type.isXMLType()) { return xmlDocument; } else if (type.isTextType()) { return plainText; } else { return audio; } } MaryData(MaryDataType type, Locale locale);  MaryData(MaryDataType type, Locale locale, boolean createStubDocument); boolean getValidating(); void setValidating(boolean doValidate); MaryDataType getType(); Locale getLocale(); void readFrom(InputStream is); void readFrom(InputStream is, String endMarker); void readFrom(Reader from); void readFrom(Reader from, String endMarker); void setData(String dataString); void writeTo(OutputStream os); void writeTo(Writer w); Object getData(); String getPlainText(); void setPlainText(String plainText); Document getDocument(); void setDocument(Document xmlDocument); AudioInputStream getAudio(); void setAudio(AudioInputStream audio); void setDefaultVoice(Voice voice); Voice getDefaultVoice(); void setDefaultStyle(String style); String getDefaultStyle(); void setDefaultEffects(String effects); String getDefaultEffects(); void setAudioFileFormat(AudioFileFormat audioFileFormat); AudioFileFormat getAudioFileFormat(); void append(MaryData md); void appendAudio(AudioInputStream audioToAppend); void setOutputParams(String params); String getOutputParams(); String toString();  }
@Test public void testConstructor6() { MaryData md = new MaryData(MaryDataType.RAWMARYXML, null, true); assertTrue(md.getData() instanceof Document); }