*/
@Test
public void testSelectionBehaviour() {
PresentSelector s;
String results;
Mapper m;
Mapper.MapperType identity = new Mapper.MapperType();
identity.setValue("identity");
Mapper.MapperType glob = new Mapper.MapperType();
glob.setValue("glob");
Mapper.MapperType merge = new Mapper.MapperType();
merge.setValue("merge");
Mapper.MapperType flatten = new Mapper.MapperType();
flatten.setValue("flatten");
File beddir = selectorRule.getBeddir();
s = new PresentSelector();
s.setTargetdir(beddir);
results = selectorRule.selectionString(s);
assertEquals("TTTTTTTTTTTT", results);
s = new PresentSelector();
s.setTargetdir(beddir);
m = s.createMapper();
m.setType(identity);
results = selectorRule.selectionString(s);
assertEquals("TTTTTTTTTTTT", results);
s = new PresentSelector();
File subdir = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/expected");
s.setTargetdir(subdir);
m = s.createMapper();
m.setType(flatten);
results = selectorRule.selectionString(s);
assertEquals("TTTTTTTTTTTF", results);
s = new PresentSelector();
s.setTargetdir(beddir);
m = s.createMapper();
m.setType(merge);
m.setTo("asf-logo.gif.gz");
results = selectorRule.selectionString(s);
assertEquals("TTTTTTTTTTTT", results);
s = new PresentSelector();
subdir = new File(beddir, "tar/bz2");
s.setTargetdir(subdir);
m = s.createMapper();
m.setType(glob);
m.setFrom("*.bz2");
m.setTo("*.tar.bz2");
results = selectorRule.selectionString(s);
assertEquals("FFTFFFFFFFFF", results);
s = new PresentSelector();