public boolean verify(ApplicationSpec app, RoutingTableSpec table, List<String> errors) {
        if (verify) {
            String protocol = table.getProtocol();
            int numHops = hops.size();
            if (numHops == 0) {
                errors.add("Route '" + name + "' in routing table '" + protocol + "' has no hops.");
            } else {
                for (int i = 0; i < numHops; ++i) {
                    HopSpec.verify(app, table, null, null, hops.get(i), errors,
                                   "hop " + (i + 1) + " in route '" + name + "' in routing table '" + protocol + "'");
                }
            }
        }
        return errors.isEmpty();
    }
Verifies the content of this against the given application.

@param app    The application to verify against.
@param table  The routing table to verify against.
@param errors The list of errors found.
@return True if no errors where found.
messagebus/src/main/java/com/yahoo/messagebus/routing/RouteSpec.java