protected AbstractYamlTest(String name) throws IOException {
super(name);
List<SPFYamlTestDescriptor> tests = SPFYamlTestDescriptor.loadTests(getFilename());
Iterator<SPFYamlTestDescriptor> i = tests.iterator();
while (i.hasNext() && data == null) {
SPFYamlTestDescriptor def = i.next();
if (name.equals(def.getComment()+" #COMPLETE!")) {
data = def;
this.test = null;
} else {
Iterator<String> j = def.getTests().keySet().iterator();
while (j.hasNext() && data == null) {
String test = j.next();
if (name.equals(def.getComment()+ " #"+test)) {
data = def;
this.test = test;
}
}
}