### Question:
SlaProxy extends AbstractProxy { public String addAgreement(Agreement slaAgreement) { Entity content = Entity.entity(slaAgreement, MediaType.APPLICATION_JSON); Invocation invocation = getJerseyClient().target(getEndpoint() + "/seaclouds/agreements").request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildPost(content); return invocation.invoke().readEntity(String.class); } SlaProxy(); String addAgreement(Agreement slaAgreement); String removeAgreement(String agreementId); String notifyRulesReady(Agreement slaAgreement); Agreement getAgreement(String agreementId); Agreement getAgreementByTemplateId(String slaAgreementTemplateId); GuaranteeTermsStatus getAgreementStatus(Agreement agreement); GuaranteeTermsStatus getAgreementStatus(String agreementId); List<Violation> getGuaranteeTermViolations(Agreement agreement, GuaranteeTerm guaranteeTerm); List<Penalty> getGuaranteeTermPenalties(Agreement agreement, GuaranteeTerm guaranteeTerm);  }### Answer:
@Test public void testAddAgreement() throws Exception { String json = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_PATH_JSON); getMockWebServer().enqueue(new MockResponse() .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); assertNotNull(getProxy().addAgreement(ObjectMapperHelpers.JsonToObject(json, Agreement.class))); }