@Test
public void testGenerateGetAgreement() throws Exception {

    server.enqueue(new MockResponse().
            setBody(readFile("/eu/seaclouds/planner/core/application/agreements/sla-create-agreement-response.xml")));
    server.start();
    URL url = server.url("/").url();
    AgreementGenerator generator = new AgreementGenerator(url.toString());
    String result = generator.getAgreement("templateId");
    assertNotNull(result);
}