ServiceAlert.Builder builder = ServiceAlert.newBuilder();
ServiceAlert serviceAlert = _service.createOrUpdateServiceAlert(builder,
"1");
FileInputStream in = new FileInputStream(_serviceAlertsPath);
ServiceAlertsCollection collection = ServiceAlertsCollection.parseFrom(in);
in.close();
assertEquals(1, collection.getServiceAlertsCount());
ServiceAlert read = collection.getServiceAlerts(0);
assertEquals(serviceAlert.getId().getAgencyId(), read.getId().getAgencyId());
assertEquals(serviceAlert.getId().getId(), read.getId().getId());
assertEquals(serviceAlert.getCreationTime(), read.getCreationTime());
}