### Question:
ClassPathHelper { public static void printClassPathEntries (@Nonnull final PrintStream aPS) { printClassPathEntries (aPS, ENewLineMode.DEFAULT.getText ()); } private  ClassPathHelper(); @Nonnull @ReturnsMutableCopy static ICommonsList <String> getAllClassPathEntries(); static void forAllClassPathEntries(@Nonnull final Consumer <? super String> aConsumer); static void printClassPathEntries(@Nonnull final PrintStream aPS); static void printClassPathEntries(@Nonnull final PrintStream aPS, @Nonnull final String sItemSeparator);  }### Answer:
@Test public void testPrintClassPathEntries () throws UnsupportedEncodingException { NonBlockingByteArrayOutputStream baos = new NonBlockingByteArrayOutputStream (); ClassPathHelper.printClassPathEntries (new PrintStream (baos, false, StandardCharsets.ISO_8859_1.name ())); assertTrue (baos.getAsString (StandardCharsets.ISO_8859_1).length () > 0); assertTrue (baos.getAsString (StandardCharsets.ISO_8859_1).indexOf ("\n") > 0); StreamHelper.close (baos); baos = new NonBlockingByteArrayOutputStream (); ClassPathHelper.printClassPathEntries (new PrintStream (baos, false, StandardCharsets.ISO_8859_1.name ()), "$$$"); assertTrue (baos.getAsString (StandardCharsets.ISO_8859_1).length () > 0); assertTrue (baos.getAsString (StandardCharsets.ISO_8859_1).indexOf ("$$$") > 0); assertTrue (baos.getAsString (StandardCharsets.UTF_8).indexOf ("$$$") > 0); StreamHelper.close (baos); }