String single = testConfig.getSingleTest();
String startsWith = testConfig.getStartsWith();
if (single != null) {
filter = new NameFileFilter(single);
} else if (startsWith != null) {
filter = new PrefixFileFilter(startsWith);
filter = new AndFileFilter(filter, new SuffixFileFilter(testConfig.getFileSuffix()));
filter = decorateWithDisabledList(filter, testConfig.getDisabledTests());
} else {
filter = new SuffixFileFilter(testConfig.getFileSuffix());
filter = decorateWithDisabledList(filter, testConfig.getDisabledTests());