### Question:
PolicyParser { private static InputStream getStream(String path) { try { return new FileInputStream(path); } catch (Exception e) { fail("File not found: " + path); return null; } } PolicyParser(InputStream schemaStream); private  PolicyParser(Schema schema); private  PolicyParser(SoftReferenceObjectPool<Validator> validators); PolicyParser copy(); AbstractPolicy parse(InputStream policyStream,
                                boolean schemaValidate); static void main(String[] args);  }### Answer:
@Test (expected=SAXException.class) public void testConstructWithBadSchema() throws IOException, SAXException { new PolicyParser(StreamUtility.getStream(SCHEMA_BAD)); }