@Test(expected = SAXException.class) public void testGetInstanceFromURIWithSpecifiedLevelParseFailureIOException() throws Exception { doThrow(new IOException("Failure")) .when(mockSaxParser) .parse(anyString(), any(XMLSAXHandler.class)); DocumentFactory.getInstance(uri, hints, Level.WARNING); }
public static Object getInstance(URI desiredDocument, Map<String, Object> hints) throws SAXException { return getInstance(desiredDocument, hints, Level.WARNING); }
DocumentFactory { public static Object getInstance(URI desiredDocument, Map<String, Object> hints) throws SAXException { return getInstance(desiredDocument, hints, Level.WARNING); } }
DocumentFactory { public static Object getInstance(URI desiredDocument, Map<String, Object> hints) throws SAXException { return getInstance(desiredDocument, hints, Level.WARNING); }  }
DocumentFactory { public static Object getInstance(URI desiredDocument, Map<String, Object> hints) throws SAXException { return getInstance(desiredDocument, hints, Level.WARNING); }  static Object getInstance(URI desiredDocument, Map<String, Object> hints); static Object getInstance(
            URI desiredDocument, @SuppressWarnings("rawtypes") Map hints, Level level); static Object getInstance(InputStream is, Map<String, Object> hints, Level level); }
DocumentFactory { public static Object getInstance(URI desiredDocument, Map<String, Object> hints) throws SAXException { return getInstance(desiredDocument, hints, Level.WARNING); }  static Object getInstance(URI desiredDocument, Map<String, Object> hints); static Object getInstance(
            URI desiredDocument, @SuppressWarnings("rawtypes") Map hints, Level level); static Object getInstance(InputStream is, Map<String, Object> hints, Level level); static final String VALIDATION_HINT; static final String DISABLE_EXTERNAL_ENTITIES; }