def METHOD_NAME(self):
    # Test loading of backup when corrupt
    from GangaCore.GPI import jobs
    assert len(jobs) == 1
    assert len(jobs(0).subjobs) == 2
    backend2 = jobs(0).subjobs(0).backend
    assert backend2 is not None
    XMLFileName = getSJXMLFile(jobs(0).subjobs(0))
    from tempfile import NamedTemporaryFile
    with NamedTemporaryFile(mode='w', delete=False) as myTempfile:
        myTempfile.write(badStr)
        myTempfile.flush()
        myTempName = myTempfile.name
    from GangaCore.GPIDev.Base.Proxy import stripProxy
    assert stripProxy(jobs(0).subjobs(0))._dirty is True
    assert stripProxy(jobs(0))._dirty is True
    stripProxy(jobs(0).subjobs(0))._getRegistry().flush_all()
    assert open(XMLFileName).read() != open(myTempName).read()
    unlink(myTempName)