*/
public void testGetParents() throws Exception {
ctl.replay();
// Project level
LinkedList<CoverageResult> expectedParents = new LinkedList<CoverageResult>();
CoverageResult result = loadResults(FILE_COVERAGE_DATA);
result.setOwner(build);
assertEquals(expectedParents, result.getParents());
// Package level
expectedParents.add(result);
result = result.getChild("search");
assertEquals(expectedParents, result.getParents());
// File level
expectedParents.add(result);
result = result.getChild("LinearSearch.java");
assertEquals(expectedParents, result.getParents());
// Class level
expectedParents.add(result);
result = result.getChild("LinearSearch");
assertEquals(expectedParents, result.getParents());
// Method level
expectedParents.add(result);
result = result.getChild("int find(int,int)");
assertEquals(expectedParents, result.getParents());
ctl.verify();
}