@Test
public void testGetAgreementStatus() throws Exception {

    String termStatusJson = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_STATUS_PATH_JSON);
    String agreementJson = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_PATH_JSON);
    Agreement agreement = ObjectMapperHelpers.JsonToObject(agreementJson, Agreement.class);
    getMockWebServer().enqueue(new MockResponse()
                    .setBody(termStatusJson)
                    .setHeader("Accept", MediaType.APPLICATION_JSON)
                    .setHeader("Content-Type", MediaType.APPLICATION_JSON)
    );
    // GuaranteeTermsStatus doesn't implement equals(), so we are going to check the IDs
    GuaranteeTermsStatus response = getProxy().getAgreementStatus(agreement);
    GuaranteeTermsStatus fixture = ObjectMapperHelpers.JsonToObject(termStatusJson, GuaranteeTermsStatus.class);
    assertEquals(response.getAgreementId(), fixture.getAgreementId());
}