### Question:
SerializationHelper { public static void readJobRep( Object object, Repository rep, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException { try { String jobXML = rep.getJobEntryAttributeString( id_step, "job-xml" ); ByteArrayInputStream bais = new ByteArrayInputStream( jobXML.getBytes() ); Document doc = XMLParserFactoryProducer.createSecureDocBuilderFactory().newDocumentBuilder().parse( bais ); read( object, doc.getDocumentElement() ); } catch ( ParserConfigurationException ex ) { throw new KettleException( ex.getMessage(), ex ); } catch ( SAXException ex ) { throw new KettleException( ex.getMessage(), ex ); } catch ( IOException ex ) { throw new KettleException( ex.getMessage(), ex ); } }  static void read( Object object, Node node ); @SuppressWarnings( "unchecked" ) static void write( Object object, int indentLevel, StringBuilder buffer ); static void saveJobRep( Object object, Repository rep, ObjectId id_job, ObjectId id_job_entry ); static void readJobRep( Object object, Repository rep, ObjectId id_step, List<DatabaseMeta> databases ); static void saveStepRep( Object object, Repository rep, ObjectId id_transformation, ObjectId id_step ); static void readStepRep( Object object, Repository rep, ObjectId id_step, List<DatabaseMeta> databases );  }### Answer:
@Test( expected = KettleException.class ) public void readingJobRepoThrowsExceptionWhenParsingXmlWithBigAmountOfExternalEntities() throws Exception { SerializationHelper.readJobRep( null, repo, null, new ArrayList<>() ); }