### Question:
RESTService extends Service { @Override public final String getAlias() { try { String pathPrefix = null; for (Annotation classAnnotation : this.getClass().getAnnotations()) { if (classAnnotation instanceof ServicePath) { pathPrefix = ((ServicePath) classAnnotation).value(); break; } } if (pathPrefix == null) { throw new Exception("ServicePath annotation for service class is required!"); } pathPrefix = pathPrefix.trim(); pathPrefix = pathPrefix.replaceAll("(^/)|(/$)", ""); if (pathPrefix.length() == 0) { throw new Exception("ServicePath annotation for service class is required!"); } return pathPrefix; } catch (Exception e) { } return null; } RESTService(); final RESTResponse handle(URI baseUri, URI requestUri, String method, byte[] body,
			Map<String, List<String>> headers); final String getSwagger(); @Override final String getAlias();  }### Answer:
@Test public void testAlias() { assertEquals("service1", testee.getAlias()); }