@Test
public void testGetViolationsWithPolicy1() {

    IPolicy policy;
    System.out.println("---testEvaluateWithPolicy1()---");
    /*
     * Only t - 2 is breach 
     */
    List<IMonitoringMetric> metrics = setUpWithPolicies();
    policy = newPolicy("LATENCY", 2, new Date(3000));
    term.setPolicies(Arrays.asList(new IPolicy[] { policy }));
    List<IViolation> violations = evaluator.evaluate(contract, term, metrics, now);
    assertEquals(0, violations.size());
}