@Test
public void testGetProjectPropertiesMap() throws CruiseControlException {

    final String label = "labeL.1";
    project.setLabel(label);
    final String lastBuild = "20000101120000";
    project.setLastBuild(lastBuild);
    final String lastGoodBuild = "19990101120000";
    project.setLastSuccessfulBuild(lastGoodBuild);
    project.setWasLastBuildSuccessful(true);
    final TimeZone cest = TimeZone.getTimeZone("Europe/Copenhagen");
    final Calendar now = new GregorianCalendar(cest);
    now.set(2005, Calendar.AUGUST, 10, 13, 7, 43);
    final String cvstimestamp = "2005-08-10 11:07:43 GMT";
    projectConfig.add(new MockSchedule());
    project.init();
    // The returned time is dependent on the default timezone hence
    // the use of DateUtil.getFormattedTime()
    final String cctimestamp = DateUtil.getFormattedTime(now.getTime());
    final Map<String, String> map = project.getProjectPropertiesMap(now.getTime());
    assertEquals(project.getName(), map.get("projectname"));
    assertEquals(label, map.get("label"));
    assertEquals(cctimestamp, map.get("cctimestamp"));
    assertEquals(lastGoodBuild, map.get("cclastgoodbuildtimestamp"));
    assertEquals(lastBuild, map.get("cclastbuildtimestamp"));
    assertEquals("true", map.get("lastbuildsuccessful"));
    assertEquals(cvstimestamp, map.get("cvstimestamp"));
    assertEquals(String.valueOf(project.getBuildForced()), map.get("buildforced"));
    assertEquals(8, map.keySet().size());
}