ByteArrayOutputStream arrayOutput = new ByteArrayOutputStream(1024);
FileProfileLogger logger = new FileProfileLogger(arrayOutput);
for (int i=0;i<100;i++) {
logger.newObject(1,1,1,1,1);
logger.releaseObject(1,1);
}
ByteArrayInputStream input = new ByteArrayInputStream(arrayOutput.toByteArray());
SpyFileReader reader = new SpyFileReader(input,false);