@Test
public void testGenerateAgreementId() throws Exception {

    server.enqueue(new MockResponse().setBody(
            readFile("/eu/seaclouds/planner/core/application/agreements/sla-create-template-response.json")));
    server.start();
    URL url = server.url("/").url();
    // Load a sample adp
    String adp = readFile("/generated_adp.yml");
    // Generate an empty set of monitoring rules
    MonitoringInfo monitoring = new MonitoringInfo(new MonitoringRules(), adp);
    AgreementGenerator generator = new AgreementGenerator(url.toString());
    String result = generator.generateAgreeemntId(adp, monitoring);
    assertNotNull(result);
}