assertEquals("aa_-1_schedule.xml", file.getFileBaseName());
assertEquals("aa_-1-schedule.xml", file.getFileBaseName());
    public void testGenerate() throws Exception {        AutoAttendant operator = new AutoAttendant();        operator.setSystemId("operator");        AutoAttendant after = new AutoAttendant();        after.setSystemId("afterhour");        ScheduledAttendant sa = new ScheduledAttendant();        sa.setAttendant(after);        DateFormat format = new SimpleDateFormat("MM/dd/yyy");        Holiday holiday = new Holiday();        holiday.setAttendant(after);        holiday.addDay(format.parse("01/01/2005"));        holiday.addDay(format.parse("06/06/2005"));        holiday.addDay(format.parse("12/24/2005"));        WorkingTime wt = new WorkingTime();        wt.setAttendant(operator);        WorkingHours[] workingHours = wt.getWorkingHours();        Date stop = workingHours[4].getStop();        Calendar calendar = Calendar.getInstance();        calendar.setTime(stop);        calendar.add(Calendar.HOUR_OF_DAY, -1);        workingHours[4].setStop(calendar.getTime());        AttendantRule rule = new AttendantRule();        rule.setAfterHoursAttendant(sa);        rule.setHolidayAttendant(holiday);        rule.setWorkingTimeAttendant(wt);        AttendantScheduleFile file = new AttendantScheduleFile();        file.generate(rule);        assertEquals("aa_-1_schedule.xml", file.getFileBaseName());        String generatedXml = file.getFileContent();        InputStream referenceXmlStream = AttendantScheduleFileTest.class                .getResourceAsStream("attendant_schedule.test.xml");        assertXMLEqual(new InputStreamReader(referenceXmlStream), new StringReader(generatedXml));    }