@Test
public void testServiceProvidedUiPath() {

    String resourcePath = "ui/exampleService";
    class MyService extends StatelessService {
        @Override
        public ServiceDocument getDocumentTemplate() {
            ServiceDocument serviceDocument = new ServiceDocument();
            serviceDocument.documentDescription = new ServiceDocumentDescription();
            serviceDocument.documentDescription.userInterfaceResourcePath = resourcePath;
            return serviceDocument;
        }
    }
    Path path = Paths.get(resourcePath);
    assertEquals(path, Utils.getServiceUiResourcePath(new MyService()));
}