diff --git a/tests/sumo/lc_model/bugs/testsuite.sumo b/tests/sumo/lc_model/bugs/testsuite.sumo
index 24c6053b7bb3..9d996a294fcb 100644
--- a/tests/sumo/lc_model/bugs/testsuite.sumo
+++ b/tests/sumo/lc_model/bugs/testsuite.sumo
@@ -53,3 +53,6 @@ ticket15854
# deadlock with 3 vehicles
ticket15857
+
+# deadlock on junction
+ticket15887
diff --git a/tests/sumo/lc_model/bugs/ticket15887/errors.sumo b/tests/sumo/lc_model/bugs/ticket15887/errors.sumo
new file mode 100644
index 000000000000..e71002a1a339
--- /dev/null
+++ b/tests/sumo/lc_model/bugs/ticket15887/errors.sumo
@@ -0,0 +1,16 @@
+Warning: Teleporting vehicle 'f_0.52'; waited too long (jam), lane=':J1_0_0', time=559.00.
+Warning: Vehicle 'f_0.52' ends teleporting on edge 'E1', time=559.00.
+Warning: Teleporting vehicle 'f_0.70'; waited too long (jam), lane=':J1_0_0', time=863.00.
+Warning: Vehicle 'f_0.70' ends teleporting on edge 'E1', time=863.00.
+Warning: Teleporting vehicle 'f_0.92'; waited too long (jam), lane=':J1_0_0', time=1201.00.
+Warning: Vehicle 'f_0.92' ends teleporting on edge 'E1', time=1201.00.
+Warning: Teleporting vehicle 'f_0.93'; waited too long (jam), lane=':J1_0_0', time=1505.00.
+Warning: Vehicle 'f_0.93' ends teleporting on edge 'E1', time=1505.00.
+Warning: Teleporting vehicle 'f_0.171'; waited too long (jam), lane=':J1_0_0', time=1809.00.
+Warning: Vehicle 'f_0.171' ends teleporting on edge 'E1', time=1809.00.
+Warning: Teleporting vehicle 'f_0.252'; waited too long (jam), lane=':J1_0_0', time=2113.00.
+Warning: Vehicle 'f_0.252' ends teleporting on edge 'E1', time=2113.00.
+Warning: Teleporting vehicle 'f_0.271'; waited too long (jam), lane=':J1_0_0', time=2431.00.
+Warning: Vehicle 'f_0.271' ends teleporting on edge 'E1', time=2431.00.
+Warning: Teleporting vehicle 'f_0.272'; waited too long (jam), lane=':J1_0_0', time=2735.00.
+Warning: Vehicle 'f_0.272' ends teleporting on edge 'E1', time=2735.00.
diff --git a/tests/sumo/lc_model/bugs/ticket15887/input_routes.rou.xml b/tests/sumo/lc_model/bugs/ticket15887/input_routes.rou.xml
new file mode 100644
index 000000000000..b118b9ad7aec
--- /dev/null
+++ b/tests/sumo/lc_model/bugs/ticket15887/input_routes.rou.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/sumo/lc_model/bugs/ticket15887/net.net.xml b/tests/sumo/lc_model/bugs/ticket15887/net.net.xml
new file mode 100644
index 000000000000..75e49b0c6a19
--- /dev/null
+++ b/tests/sumo/lc_model/bugs/ticket15887/net.net.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/sumo/lc_model/bugs/ticket15887/options.sumo b/tests/sumo/lc_model/bugs/ticket15887/options.sumo
new file mode 100644
index 000000000000..56c9531cb900
--- /dev/null
+++ b/tests/sumo/lc_model/bugs/ticket15887/options.sumo
@@ -0,0 +1,3 @@
+--no-step-log --net-file=net.net.xml --routes=input_routes.rou.xml
+--max-depart-delay 5
+-t
diff --git a/tests/sumo/lc_model/bugs/ticket15887/output.sumo b/tests/sumo/lc_model/bugs/ticket15887/output.sumo
new file mode 100644
index 000000000000..71af0f821987
--- /dev/null
+++ b/tests/sumo/lc_model/bugs/ticket15887/output.sumo
@@ -0,0 +1,21 @@
+Loading net-file from 'net.net.xml' ... done (1ms).
+Loading done.
+Simulation version v1_21_0+1293-3e583085999 started with time: 0.00.
+Simulation ended at time: 2794.00.
+Reason: All vehicles have left the simulation.
+Performance:
+ Duration: 0.13s
+ Real time factor: 21658.9
+ UPS: 417666.666667
+Vehicles:
+ Inserted: 115 (Loaded: 277)
+ Running: 0
+ Waiting: 0
+ Teleports: 8 (Jam: 8)
+Statistics (avg of 115):
+ RouteLength: 296.02
+ Speed: 2.59
+ Duration: 468.51
+ WaitingTime: 406.35
+ TimeLoss: 446.22
+ DepartDelay: 1.74