Java Spring Set Set Prywatne pole w teście
import org.springframework.test.util.ReflectionTestUtils;
ReflectionTestUtils.setField(notificationService, "timeToLive", 90L);
DevPedrada