@Test
public void testAddText() throws Exception {

    final SsmlDocument document = new SsmlDocument();
    final Speak speak = document.getSpeak();
    speak.addText("1");
    speak.addText("  2 3  \t ");
    speak.addText("\r\n4 ");
    speak.addText("5");
    speak.addText("6");
    Assert.assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"
            + "<speak "
            + "xmlns=\"http://www.w3.org/2001/10/synthesis\" "
            + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
            + "version=\"1.0\" xml:lang=\""
            + LanguageIdentifierConverter.toLanguageIdentifier(
                    Locale.getDefault()) + "\" "
            + "xsi:schemaLocation=\"http://www.w3.org/2001/10/synthesis "
            + "http://www.w3.org/TR/speech-synthesis/synthesis.xsd\">"
            + "1 2 3 4 5 6</speak>", document.toString());
}