### Question:
SmackXmlParser { public static XmlPullParserFactory getXmlPullParserFactory() { Iterator<XmlPullParserFactory> iterator = xmlPullParserFactoryServiceLoader.iterator(); if (!iterator.hasNext()) { throw new IllegalStateException( "No XmlPullParserFactory registered with Service Provider Interface (SPI). Is smack-xmlparser-xpp3 or smack-xmlparser-stax in classpath?"); } return iterator.next(); }  static XmlPullParserFactory getXmlPullParserFactory(); static XmlPullParser newXmlParser(Reader reader);  }### Answer:
@Test public void testSmackXmlParser() { assertThrows(IllegalStateException.class, () -> SmackXmlParser.getXmlPullParserFactory()); }