public static Endpoint suffixServiceName(Endpoint endpoint, String serviceNameSuffix) {
    String prefixed = appendSuffix(endpoint.serviceName(), serviceNameSuffix);
    if (endpoint.serviceName().equals(prefixed)) return endpoint;
    return endpoint.toBuilder().serviceName(prefixed).build();
  }
Reuse a builder as it is significantly slows tests to create 100000 of these!
zipkin/src/test/java/zipkin2/TestObjects.java