def METHOD_NAME(self):
    # Regression test for https://github.com/e-valuation/EvaP/issues/1594
    participant1 = baker.make(UserProfile)
    participant2 = baker.make(UserProfile)
    self.evaluation.participants.add(participant1)
    # Refresh reference to evaluation, to force new log entry
    self.evaluation = Evaluation.objects.get(pk=self.evaluation.pk)
    self.evaluation.participants.remove(participant1)
    self.evaluation.participants.add(participant2)
    self.assertEqual(
        self.evaluation.related_logentries().order_by("id").last().data,
        {"participants": {"add": [participant2.id], "remove": [participant1.id]}},
    )