public static Document loadXMLFrom( String xml ) throws SAXException, IOException {
    return loadXMLFrom( new ByteArrayInputStream( xml.getBytes() ) );
  }
@Test
  public void whenLoadingLegalXmlFromStringNotNullDocumentIsReturned() throws Exception {
    final String trans = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
      + "<transformation>"
      + "</transformation>";

    assertNotNull( PDIImportUtil.loadXMLFrom( trans ) );

  }