AgreementRest extends AbstractSLARest { @GET @Path("active") @Produces(MediaType.APPLICATION_XML) public Response getActiveAgreements() { logger.debug("StartOf getActiveAgreements - Get active agreements"); long actualDate = new Date().getTime(); Response result; try{ AgreementHelper agreementRestService = getAgreementHelper(); String serializedAgreement = agreementRestService.getActiveAgreements(actualDate); result = buildResponse(200, serializedAgreement); } catch (HelperException e) { logger.info("getActiveAgreements exception:"+e.getMessage()); return buildResponse(e); } logger.debug("EndOf getActiveAgreements"); return result; } AgreementRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getAgreements(
            @QueryParam("consumerId") String consumerId,
            @QueryParam("providerId") String providerId,
            @QueryParam("active") BooleanParam active); @GET @Path("{id}") @Produces(MediaType.APPLICATION_XML) Response getAgreementById(@PathParam("id") String agreement_id); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createAgreement(@Context HttpHeaders hh,@Context UriInfo uriInfo,  String payload); @GET @Path("active") @Produces(MediaType.APPLICATION_XML) Response getActiveAgreements(); @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) Response deleteAgreement(@PathParam("agreementId") String agreementId); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response getStatusAgreementXML(@PathParam("id") String agreement_id); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getStatusAgreementJson(@PathParam("id") String agreement_id);  }
@Test public void testGetActiveAgreements() { assert (true); }