### Question:
MicroWriter { @Nonnull public static ESuccess writeToStream (@Nonnull final IMicroNode aNode, @Nonnull @WillClose final OutputStream aOS) { return writeToStream (aNode, aOS, XMLWriterSettings.DEFAULT_XML_SETTINGS); } private  MicroWriter(); @Nonnull static ESuccess writeToFile(@Nonnull final IMicroNode aNode, @Nonnull final File aFile); @Nonnull static ESuccess writeToFile(@Nonnull final IMicroNode aNode,
                                      @Nonnull final File aFile,
                                      @Nonnull final IXMLWriterSettings aSettings); @Nonnull static ESuccess writeToFile(@Nonnull final IMicroNode aNode, @Nonnull final Path aPath); @Nonnull static ESuccess writeToFile(@Nonnull final IMicroNode aNode,
                                      @Nonnull final Path aPath,
                                      @Nonnull final IXMLWriterSettings aSettings); @Nonnull static ESuccess writeToStream(@Nonnull final IMicroNode aNode, @Nonnull @WillClose final OutputStream aOS); @Nonnull static ESuccess writeToStream(@Nonnull final IMicroNode aNode,
                                        @Nonnull @WillClose final OutputStream aOS,
                                        @Nonnull final IXMLWriterSettings aSettings); @Nonnull static ESuccess writeToWriter(@Nonnull final IMicroNode aNode,
                                        @Nonnull @WillClose final Writer aWriter,
                                        @Nonnull final IXMLWriterSettings aSettings); @Nonnull static ESuccess writeToWriter(@Nonnull final IMicroNode aNode, @Nonnull @WillClose final Writer aWriter); @Nullable static String getNodeAsString(@Nonnull final IMicroNode aNode, @Nonnull final IXMLWriterSettings aSettings); @Nullable static String getNodeAsString(@Nonnull final IMicroNode aNode); @Nullable static byte [] getNodeAsBytes(@Nonnull final IMicroNode aNode, @Nonnull final IXMLWriterSettings aSettings); @Nullable static byte [] getNodeAsBytes(@Nonnull final IMicroNode aNode);  }### Answer:
@Test public void testSaveToStream () { try { MicroWriter.writeToStream (null, new NonBlockingByteArrayOutputStream (), XMLWriterSettings.DEFAULT_XML_SETTINGS); fail (); } catch (final NullPointerException ex) {} try { MicroWriter.writeToStream (new MicroDocument (), null, XMLWriterSettings.DEFAULT_XML_SETTINGS); fail (); } catch (final NullPointerException ex) {} try { MicroWriter.writeToStream (new MicroDocument (), new NonBlockingByteArrayOutputStream (), null); fail (); } catch (final NullPointerException ex) {} }