System.out.println(srh.containsRequest("Test", new TimeInterval(500, 2500)));
System.out.println(srh.containsRequest("Test", TimeSpans.getSpan(500, 2500)));
  public static void main(String[] args) {    ServiceRequestRecord srr = new ServiceRequestRecord("Test", new TimeInterval(1000, 2000));    ServiceRequestRecord srr2 = new ServiceRequestRecord("Test", new TimeInterval(2000, 3000));    ServiceRequestHistory srh = new ServiceRequestHistory(null, new TimeInterval(1000, 3000), srr);    srh.addRequest(srr2);    System.out.println(srh.containsRequest("Test", new TimeInterval(1000, 2000)));    //true    System.out.println(srh.containsRequest("Test", new TimeInterval(1000, 3000)));    //true    System.out.println(srh.containsRequest("Test", new TimeInterval(1500, 2500)));    //true    System.out.println(srh.containsRequest("Test", new TimeInterval(500, 2500)));    //false    System.out.println(srh.containsRequest("XS", new TimeInterval(1000, 2000)));    //false  }