for (int i=0;i<100;i++) {
logger.loadClass(1,1,"test",10);
}
ByteArrayInputStream input = new ByteArrayInputStream(arrayOutput.toByteArray());
SpyReader reader = new SpyReader(input, new InputStream[] {});
for (int i=0;i<100;i++) {
SpyRegister register = reader.getBestRegister();
assertNotNull(register);
assertTrue("Expected to be an loadClass",register instanceof SpyRegisterLoadClass);
reader.readNextRegister();
}
}