/** Test the provider. */
  @Test
  public void testLinkProvider() {
    SolarMonitorLinkProvider provider = new SolarMonitorLinkProvider();
    assertNotNull(provider.getServiceName());
    assertNotNull(provider.getDescription());

    Calendar cal = Calendar.getInstance();
    cal.setTimeInMillis(0);
    cal.set(2011, Calendar.SEPTEMBER, 15);
    Date startTime = cal.getTime();
    cal.add(Calendar.DAY_OF_MONTH, 3);
    Date endTime = cal.getTime();
    URL link = provider.getLink(startTime, endTime);
    assertNotNull(link);
    assertEquals(FileUtil.asURL("http://solarmonitor.org/index.php?date=20110915"), link);

    String title = provider.getTitle(startTime, endTime);
    assertNotNull(title);
    assertEquals("SolarMonitor for 15-Sep-2011", title);
  }
 @After
 public void tearDown() {
   FileUtil.removeDir(tempDir);
 }