### Question:
ReadableResourceSAXInputSource extends InputSource { @Override public InputStream getByteStream () { final InputStream aIS = m_aISP.getInputStream (); if (aIS == null) if (LOGGER.isWarnEnabled ()) LOGGER.warn ("Failed to open input stream for " + m_aISP); return aIS; } ReadableResourceSAXInputSource(@Nonnull final IReadableResource aResource);  ReadableResourceSAXInputSource(@Nonnull final IHasInputStream aISP, @Nullable final String sSystemID); @Nonnull final IHasInputStream getInputStreamProvider(); @Override InputStream getByteStream(); @Override String toString();  }### Answer:
@Test public void testBasic () { final IReadableResource aRes = new ClassPathResource ("xml/list.xml"); final ReadableResourceSAXInputSource is = new ReadableResourceSAXInputSource (aRes); assertNotNull (StreamHelper.getAllBytes (is.getByteStream ())); CommonsTestHelper.testToStringImplementation (is); assertNull (new ReadableResourceSAXInputSource (new MockNullInputStreamProvider (), "sysid").getByteStream ()); }