assertEquals(1, builder.getActiveWindowCount());
TimeRange range = builder.getActiveWindow(0);
assertEquals(30L, range.getStart());
assertEquals(40L, range.getEnd());
assertEquals(1, builder.getAffectsCount());
Affects affects = builder.getAffects(0);
assertEquals("1", affects.getAgencyId());
assertEquals("key", affects.getApplicationId());
assertEquals("0", affects.getDirectionId());
assertEquals("route", affects.getRouteId().getId());
assertEquals("trip", affects.getTripId().getId());
assertEquals("stop", affects.getStopId().getId());
assertEquals(Cause.ACCIDENT, builder.getCause());
assertEquals(1, builder.getConsequenceCount());
Consequence consequence = builder.getConsequence(0);
assertEquals(Effect.DETOUR, consequence.getEffect());
assertEquals("path", consequence.getDetourPath());