### Question:
XMLListHandler { @Nullable @ReturnsMutableCopy public static ICommonsList <String> readList (@Nonnull final IHasInputStream aISP) { ValueEnforcer.notNull (aISP, "InputStreamProvider"); return readList (aISP.getInputStream ()); } private  XMLListHandler(); @Nullable @ReturnsMutableCopy static ICommonsList <String> readList(@Nonnull final IHasInputStream aISP); @Nonnull static ESuccess readList(@Nonnull final IHasInputStream aISP, @Nonnull final Collection <String> aTargetList); @Nullable @ReturnsMutableCopy static ICommonsList <String> readList(@Nonnull @WillClose final InputStream aIS); @Nonnull static ESuccess readList(@Nonnull @WillClose final InputStream aIS, @Nonnull final Collection <String> aTargetList); @Nonnull static ESuccess readList(@Nonnull final IMicroElement aParentElement, @Nonnull final Collection <String> aTargetList); @Nonnull static IMicroDocument createListDocument(@Nonnull final Collection <String> aCollection); @Nonnull static ESuccess writeList(@Nonnull final Collection <String> aCollection, @Nonnull final IHasOutputStream aOSP); @Nonnull static ESuccess writeList(@Nonnull final Collection <String> aCollection, @Nonnull @WillClose final OutputStream aOS); static final String ELEMENT_LIST; static final String ELEMENT_ITEM; static final String ATTR_VALUE; }### Answer:
@Test public void testReadInvalid () { final ICommonsList <String> aList = new CommonsArrayList <> (); final IReadableResource aRes = new ClassPathResource ("xml/list.xml"); try { XMLListHandler.readList ((IHasInputStream) null); fail (); } catch (final NullPointerException ex) {} try { XMLListHandler.readList ((IHasInputStream) null, aList); fail (); } catch (final NullPointerException ex) {} try { XMLListHandler.readList (aRes, null); fail (); } catch (final NullPointerException ex) {} try { XMLListHandler.readList ((InputStream) null); fail (); } catch (final NullPointerException ex) {} try { XMLListHandler.readList ((InputStream) null, aList); fail (); } catch (final NullPointerException ex) {} try { XMLListHandler.readList (aRes.getInputStream (), null); fail (); } catch (final NullPointerException ex) {} }