@Test
public void testTranslateWrongAgreement() throws IOException {

    String json = readFile("/violation_ofbiz_2.0.1.json");
    IConstraintEvaluator constraintEvaluator = new SimpleConstraintEvaluator();
    
    ModacloudsTranslator translator = new ModacloudsTranslator(constraintEvaluator);
    Agreement agreement = new Agreement();
    GuaranteeTerm term = new GuaranteeTerm();
    term.setKpiName("responsetime");
    term.setName("rt");
    term.setServiceLevel("WinVMCPUUtilization NOT_EXISTS");
    agreement.setGuaranteeTerms(Arrays.asList(new IGuaranteeTerm[] { term}));
    
    Map<IGuaranteeTerm, List<IMonitoringMetric>> map = translator.translate(agreement, json);
    
    List<IMonitoringMetric> list = map.get(term);
    if (list == null) {
        assertNull(list);
    }
    else {
        assertEquals(0, map.get(term).size());
    }
}