URL datafile=getClass().getResource(DUMP);
URI uri=datafile.toURI();
File dump=new File(uri);
HProfFile h=HProfFactory.createReader(dump);
h.open();
int records=h.getRecordCount();
for(int i=0;i<records;i++) {
Object o=h.getRecord(i);
assertNotNull("element "+i+" is null",o);
}