ServiceTypes { @Deprecated public static ServiceType serviceType(String type) { return new ServiceTypeImpl(type); } private  ServiceTypes(); @Deprecated static ServiceType serviceType(String type);  }
@Test public void testValue() { assertEquals(ServiceTypes.serviceType("type").value(), "type"); }
@Test public void testToString() { if (!System.getProperty("java.version").startsWith("1.")) { assertEquals(ServiceTypes.serviceType("qu\"ote").toString(), quoteServiceType.toString()); } assertEquals(ServiceTypes.serviceType("apple").toString(), appleServiceType.toString()); }
@Test public void testAnnotationType() { assertEquals(ServiceTypes.serviceType("apple").annotationType(), ServiceType.class); assertEquals(ServiceTypes.serviceType("apple").annotationType(), appleServiceType.annotationType()); }
@Test public void testEquivalence() { equivalenceTester() .addEquivalentGroup(appleServiceType, ServiceTypes.serviceType("apple")) .addEquivalentGroup(bananaServiceType, ServiceTypes.serviceType("banana")) .check(); }