@Test
public void testProcessEvent() {

	new Expectations() {
		{
			for (int i=0; i<parallelism; i++) {
				processor.newProcessor(processor);
				result=processor;
			
				processor.onCreate(anyInt);
			}
		}
	};
	pi.setupInstances();
	
	instance = pi.getProcessingItemInstances().get(counter);
	new NonStrictExpectations() {
		{
			ThreadsEngine.getThreadWithIndex(anyInt);
			result=threadPool;
			
			
		}
	};
	new Expectations() {
		{
			task = new ThreadsEventRunnable(instance, event);
			threadPool.submit(task);
		}
	};
	pi.processEvent(event, counter);
	
}