RESTXMLShredder { public static XMLEventReader createReader( final InputStream inputStream) throws IOException, XMLStreamException { final XMLInputFactory factory = XMLInputFactory.newInstance(); factory.setProperty(XMLInputFactory.SUPPORT_DTD, false); return factory.createXMLEventReader(inputStream); } private  RESTXMLShredder(); static XMLEventReader createReader(
			final InputStream inputStream);  }
@Test public final void testCreateReader() throws IOException, XMLStreamException { final InputStream input = RESTXMLShredderTest.class .getResourceAsStream("/books.xml"); final XMLEventReader reader = RESTXMLShredder.createReader(input); assertNotNull("Test if the reader has been created", reader); }