/** override due to call to coordinator service.. */
 public LicenseInfoExt getLicenseInfo() {
   LicenseInfoExt licenseInfo = new LicenseInfoExt();
   licenseInfo.setLastLicenseExpirationDateEventDate(lastExpirationEventDate);
   licenseInfo.setLastRegistrationEventDate(registrationEventDate);
   licenseInfo.setLastHeartbeatEventDate(lastHeartbeatEventDate);
   licenseInfo.setLastCapacityExceededEventDate(capacityExceededEventDate);
   return licenseInfo;
 }
  /** Test case which recognizes that a license expiration event should not be sent. */
  @Test
  public void testLicenExpirationEventFalse() throws Exception {

    MockCallHomeEventManager manager = new MockCallHomeEventManager();
    LicenseInfoExt licenseInfo = new LicenseInfoExt();
    Calendar cal = Calendar.getInstance();
    cal.add(Calendar.DAY_OF_MONTH, (CallHomeConstants.LICENSE_EXPIRATION_EVENT_THRESHOLD * -1) + 1);
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    String stringDate = sdf.format(cal.getTime());

    licenseInfo.setLastLicenseExpirationDateEventDate(stringDate);
    manager.setLicenseInfo(licenseInfo);

    Assert.assertFalse(manager.doSendLicenseExpiration(licenseInfo));
  }