public void testGetNextNameJCRBackup() throws Exception
{
tempDir = new File("target" + File.separator + "temp" + File.separator + "fileProduser1");
tempDir.mkdirs();
FileNameProducer nameProducer =
new FileNameProducer(backupsetName, tempDir.getAbsolutePath(), calendar, true, false);
File file = nameProducer.getNextFile();
assertTrue(file.isFile());
assertTrue(file.getName().endsWith(".0"));
nameProducer = new FileNameProducer(backupsetName, tempDir.getAbsolutePath(), calendar, false, false);
file = nameProducer.getNextFile();
assertTrue(file.isFile());
assertTrue(file.getName().endsWith(".1"));
assertTrue(nameProducer.getNextFile().getName().endsWith(".2"));
assertTrue(nameProducer.getNextFile().getName().endsWith(".3"));
}