public static Document loadXMLFrom( String xml ) throws SAXException, IOException {
    return loadXMLFrom( new ByteArrayInputStream( xml.getBytes() ) );
  }
@Test( timeout = 2000 )
  public void whenLoadingMaliciousXmlFromStringParsingEndsWithNoErrorAndNullValueIsReturned() throws Exception {
    assertNull( PDIImportUtil.loadXMLFrom( MALICIOUS_XML ) );
  }