### Question:
ServiceResource { @RobeService(group = "Service", description = "Return Service resource.") @Path("{id}") @GET @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL) public Service get(@RobeAuth Credentials credentials, @PathParam("id") String id) { Service entity = serviceDao.findById(id); if (entity == null) { throw new WebApplicationException(Response.status(404).build()); } return entity; }  @RobeService(group = "Service", description = "Returns all Services as a collection.") @GET @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL) List<Service> getAll(@RobeAuth Credentials credentials, @SearchParam SearchModel search); @RobeService(group = "Service", description = "Return Service resource.") @Path("{id}") @GET @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL) Service get(@RobeAuth Credentials credentials, @PathParam("id") String id); @RobeService(group = "Service", description = "Create Service resource and return given Service path link at header Location=example/{id].") @POST @UnitOfWork Service create(@RobeAuth Credentials credentials, @Valid Service model); @RobeService(group = "Service", description = "Update Service resource and matches with the given id.") @Path("{id}") @PUT @UnitOfWork Service update(@RobeAuth Credentials credentials, @PathParam("id") String id, @Valid Service model); @RobeService(group = "Service", description = "Update Service resource.") @PATCH @UnitOfWork @Path("{id}") Service merge(@RobeAuth Credentials credentials, @PathParam("id") String id, Service model); @RobeService(group = "Service", description = "Delete Service resource.") @Path("{id}") @DELETE @UnitOfWork Service delete(@RobeAuth Credentials credentials, @PathParam("id") String id, @Valid Service model); @RobeService(group = "Permission", description = "Get all services group for permission") @Path("groups") @GET @UnitOfWork List<Service> listGroups(@RobeAuth Credentials credentials); @Path("refresh") @GET @UnitOfWork Response refreshServices(@RobeAuth Credentials credentials);  }### Answer:
@Test public void refresh() throws IOException { TestRequest request = getRequestBuilder().endpoint("refresh").build(); TestResponse response = client.get(request); Assert.assertEquals(response.getStatus(), 200); }
@Test public void groups() throws IOException { TestRequest request = getRequestBuilder().endpoint("groups").build(); TestResponse response = client.get(request); Assert.assertEquals(response.getStatus(), 200); Assert.assertTrue(response.list(getClazz()).size() > 0); }