def METHOD_NAME(self):
    cmd = CustomCommand.create_for_device(
        self.enrolled_device,
        kwargs={"command": plistlib.dumps({"RequestType": "InstalledApplicationList"}).decode("utf-8")},
    )
    cmd.db_command.status = Command.Status.NOT_NOW
    cmd.db_command.save()
    fetched_cmd = _get_next_queued_command(
        Target(self.enrolled_device),
        self.dep_enrollment_session,
        RequestStatus.IDLE,
    )
    self.assertEqual(fetched_cmd, cmd)