public function test_backup_controller()
 {
     // Instantiate non interactive backup_controller
     $bc = new mock_backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE, backup::INTERACTIVE_NO, backup::MODE_GENERAL, $this->userid);
     $this->assertTrue($bc instanceof backup_controller);
     $this->assertEquals($bc->get_status(), backup::STATUS_AWAITING);
     // Instantiate interactive backup_controller
     $bc = new mock_backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE, backup::INTERACTIVE_YES, backup::MODE_GENERAL, $this->userid);
     $this->assertTrue($bc instanceof backup_controller);
     $this->assertEquals($bc->get_status(), backup::STATUS_SETTING_UI);
     $this->assertEquals(strlen($bc->get_backupid()), 32);
     // is one md5
     // Save and load one backup controller to check everything is in place
     $bc = new mock_backup_controller(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE, backup::INTERACTIVE_NO, backup::MODE_GENERAL, $this->userid);
     $recid = $bc->save_controller();
     $newbc = mock_backup_controller::load_controller($bc->get_backupid());
     $this->assertTrue($newbc instanceof backup_controller);
     // This means checksum and load worked ok
 }