@Test
public void testGetAgreementViolations() throws Exception {

    String violationJson =  TestUtils.getStringFromPath(TestFixtures.VIOLATIONS_JSON_PATH);
    String agreementJson = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_PATH_JSON);
    Agreement agreement = ObjectMapperHelpers.JsonToObject(agreementJson, Agreement.class);
    for(int i = 0; i < agreement.getTerms().getAllTerms().getGuaranteeTerms().size(); i++){
        getMockWebServer().enqueue(new MockResponse()
                        .setBody(violationJson)
                        .setHeader("Accept", MediaType.APPLICATION_JSON)
                        .setHeader("Content-Type", MediaType.APPLICATION_JSON)
        );
    }
    // GuaranteeTerm doesn't implement equals(), so we are going to check not null
    for(GuaranteeTerm term : agreement.getTerms().getAllTerms().getGuaranteeTerms()){
        assertNotNull(getProxy().getGuaranteeTermViolations(agreement, term));
    }
}