package by.triumgroup.recourse.supplier.entity.model;

import by.triumgroup.recourse.entity.model.BaseEntity;
import org.springframework.data.util.Pair;

public interface EntityIntegerPKSupplier<E extends BaseEntity<Integer>> extends EntitySupplier<E, Integer>{
    @Override
    default Integer getAnyId(){
        return 1;
    }

    @Override
    default Pair<Integer, Integer> getDifferentIds(){
        return Pair.of(1, 2);
    }
}

@@ -147,16 +147,42 @@
 .Pair;%0A%0A
+import java.util.Random;%0A%0A
 public i
@@ -342,17 +342,78 @@
  return 
-1
+new Random().ints(1, Integer.MAX_VALUE).findFirst().getAsInt()
 ;%0A    %7D%0A
@@ -477,24 +477,96 @@
 erentIds()%7B%0A
+        Integer first = getAnyId();%0A        Integer second = first + 1;%0A
         retu
@@ -580,12 +580,21 @@
 .of(
-1, 2
+first, second
 );%0A 

Add random id generating for tests