### Question:
MicroHelper { @Nullable public static String getChildTextContent (@Nonnull final IMicroElement eParentElement, @Nonnull final String sChildElementName) { final IMicroElement eChildElement = eParentElement.getFirstChildElement (sChildElementName); return eChildElement != null ? eChildElement.getTextContent () : null; } private  MicroHelper(); @Nonnull static IMicroNode append(@Nonnull final IMicroNode aSrcNode, @Nullable final Object aChild); @Nonnull @SuppressFBWarnings ("IL_INFINITE_LOOP") static String getPath(@Nullable final IMicroNode aNode, @Nonnull final String sSep); @Nullable static String getDocumentRootElementTagName(@Nullable final IMicroDocument aDoc); @Nonnull static IMicroNode convertToMicroNode(@Nonnull final Node aNode); @Nullable static String getChildTextContent(@Nonnull final IMicroElement eParentElement, @Nonnull final String sChildElementName); @Nullable static String getChildTextContentTrimmed(@Nonnull final IMicroElement eParentElement, @Nonnull final String sChildElementName); @Nullable static DSTTYPE getChildTextContentWithConversion(@Nonnull final IMicroElement eParentElement,
                                                                     @Nonnull final String sChildElementName,
                                                                     @Nonnull final Class <DSTTYPE> aDstClass); @Nullable static String getChildTextContent(@Nonnull final IMicroElement eParentElement,
                                            @Nonnull final String sNamespaceURI,
                                            @Nonnull final String sChildElementName); @Nullable static String getChildTextContentTrimmed(@Nonnull final IMicroElement eParentElement,
                                                   @Nonnull final String sNamespaceURI,
                                                   @Nonnull final String sChildElementName); @Nullable static DSTTYPE getChildTextContentWithConversion(@Nonnull final IMicroElement eParentElement,
                                                                     @Nonnull final String sNamespaceURI,
                                                                     @Nonnull final String sChildElementName,
                                                                     @Nonnull final Class <DSTTYPE> aDstClass); @Nonnull @ReturnsMutableCopy static IMicroContainer getAllChildrenAsContainer(@Nonnull final IMicroNode aParent); @Nonnull @ReturnsMutableCopy static IMicroContainer getAllOriginalChildrenAsContainer(@Nonnull final IMicroNode aParent);  }### Answer:
@Test public void testGetChildTextContent () { final IMicroElement e = new MicroElement ("x"); assertNull (MicroHelper.getChildTextContent (e, "y")); final IMicroElement y = e.appendElement ("y"); assertNull (MicroHelper.getChildTextContent (e, "y")); y.appendText ("Text"); assertEquals ("Text", MicroHelper.getChildTextContent (e, "y")); y.appendElement ("z1"); assertEquals ("Text", MicroHelper.getChildTextContent (e, "y")); y.appendCDATA ("data"); assertEquals ("Textdata", MicroHelper.getChildTextContent (e, "y")); }
@Test public void testGetChildTextContentWithNS () { final String sNSURI = "my-namespace-uri"; final IMicroElement e = new MicroElement (sNSURI, "x"); assertNull (MicroHelper.getChildTextContent (e, sNSURI, "y")); final IMicroElement y = e.appendElement (sNSURI, "y"); assertNull (MicroHelper.getChildTextContent (e, sNSURI, "y")); y.appendText ("Text"); assertEquals ("Text", MicroHelper.getChildTextContent (e, sNSURI, "y")); y.appendElement ("z1"); assertEquals ("Text", MicroHelper.getChildTextContent (e, sNSURI, "y")); y.appendCDATA ("data"); assertEquals ("Textdata", MicroHelper.getChildTextContent (e, sNSURI, "y")); }