@Test public void testEquivalence() { equivalenceTester() .addEquivalentGroup(appleServiceType, ServiceTypes.serviceType("apple")) .addEquivalentGroup(bananaServiceType, ServiceTypes.serviceType("banana")) .check(); }
public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); }
ServiceTypes { public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); } }
ServiceTypes { public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); } private  ServiceTypes(); }
ServiceTypes { public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); } private  ServiceTypes(); static ServiceType serviceType(String type); }
ServiceTypes { public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); } private  ServiceTypes(); static ServiceType serviceType(String type);  }