ServiceAlert.Builder builder1 = ServiceAlert.newBuilder();
Affects.Builder affects1 = Affects.newBuilder();
affects1.setStopId(ServiceAlertLibrary.id("1", "10020"));
affects1.setTripId(ServiceAlertLibrary.id("1", "TripA"));
builder1.addAffects(affects1);
ServiceAlert serviceAlert1 = _service.createOrUpdateServiceAlert(builder1,
"1");
ServiceAlert.Builder builder2 = ServiceAlert.newBuilder();
Affects.Builder affects2 = Affects.newBuilder();
affects2.setTripId(ServiceAlertLibrary.id("1", "TripA"));
builder2.addAffects(affects2);
ServiceAlert serviceAlert2 = _service.createOrUpdateServiceAlert(builder2,
"1");
ServiceAlert.Builder builder3 = ServiceAlert.newBuilder();
Affects.Builder affects3 = Affects.newBuilder();
affects3.setRouteId(ServiceAlertLibrary.id("1", "RouteX"));
builder3.addAffects(affects3);
ServiceAlert serviceAlert3 = _service.createOrUpdateServiceAlert(builder3,
"1");
ServiceAlert.Builder builder4 = ServiceAlert.newBuilder();
Affects.Builder affects4 = Affects.newBuilder();
affects4.setRouteId(ServiceAlertLibrary.id("1", "RouteX"));
affects4.setDirectionId("1");
builder4.addAffects(affects4);
ServiceAlert serviceAlert4 = _service.createOrUpdateServiceAlert(builder4,
"1");
/**
* These alerts shouldn't match
*/