### Question:
XMLMaskHelper { @Nonnegative public static int getMaskedXMLTextLength (@Nonnull final EXMLVersion eXMLVersion, @Nonnull final EXMLCharMode eXMLCharMode, @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling, @Nullable final String s) { return getMaskedXMLTextLength (EXMLSerializeVersion.getFromXMLVersionOrThrow (eXMLVersion), eXMLCharMode, eIncorrectCharHandling, s); } private  XMLMaskHelper(); @Nonnull static String getXMLNumericReference(final char n); @Nonnull @Nonempty static String getXML10EntityReferenceString(final char c); @Nonnull @Nonempty static String getXML11EntityReferenceString(final char c); @Nonnull @Nonempty static String getHTMLEntityReferenceString(final char c); @Nonnull @ReturnsMutableCopy static char [] getAsCharArray(@Nonnull final Set <Character> aChars); @Nonnull static char [] getMaskedXMLText(@Nonnull final EXMLSerializeVersion eXMLVersion,
                                          @Nonnull final EXMLCharMode eXMLCharMode,
                                          @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling,
                                          @Nullable final String s); @Nonnegative static int getMaskedXMLTextLength(@Nonnull final EXMLVersion eXMLVersion,
                                            @Nonnull final EXMLCharMode eXMLCharMode,
                                            @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling,
                                            @Nullable final String s); @Nonnegative static int getMaskedXMLTextLength(@Nonnull final EXMLSerializeVersion eXMLVersion,
                                            @Nonnull final EXMLCharMode eXMLCharMode,
                                            @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling,
                                            @Nullable final String s); static void maskXMLTextTo(@Nonnull final EXMLSerializeVersion eXMLVersion,
                                    @Nonnull final EXMLCharMode eXMLCharMode,
                                    @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling,
                                    @Nullable final String s,
                                    @Nonnull final Writer aWriter); static void maskXMLTextTo(@Nonnull final EXMLSerializeVersion eXMLVersion,
                                    @Nonnull final EXMLCharMode eXMLCharMode,
                                    @Nonnull final EXMLIncorrectCharacterHandling eIncorrectCharHandling,
                                    @Nonnull final char [] aText,
                                    @Nonnegative final int nOfs,
                                    @Nonnegative final int nLen,
                                    @Nonnull final Writer aWriter);  }### Answer:
@Test public void testGetMaskedXMLTextLength () { assertEquals (1, XMLMaskHelper.getMaskedXMLTextLength (EXMLSerializeVersion.XML_10, EXMLCharMode.ATTRIBUTE_VALUE_DOUBLE_QUOTES, EXMLIncorrectCharacterHandling.WRITE_TO_FILE_NO_LOG, "\u0001")); assertEquals (5, XMLMaskHelper.getMaskedXMLTextLength (EXMLSerializeVersion.XML_11, EXMLCharMode.ATTRIBUTE_VALUE_DOUBLE_QUOTES, EXMLIncorrectCharacterHandling.WRITE_TO_FILE_NO_LOG, "\u0001")); assertEquals (2 + 5 + 1 + 1, XMLMaskHelper.getMaskedXMLTextLength (EXMLSerializeVersion.XML_10, EXMLCharMode.ATTRIBUTE_VALUE_DOUBLE_QUOTES, EXMLIncorrectCharacterHandling.WRITE_TO_FILE_NO_LOG, "1 & \u0001")); assertEquals (2 + 5 + 1 + 5, XMLMaskHelper.getMaskedXMLTextLength (EXMLSerializeVersion.XML_11, EXMLCharMode.ATTRIBUTE_VALUE_DOUBLE_QUOTES, EXMLIncorrectCharacterHandling.WRITE_TO_FILE_NO_LOG, "1 & \u0001")); }