@Test
	public void testPipelinedWriteBack() {
		Thread t = new Thread(pipelinedWriteBackStage);
		t.start();
		pipelinedWriteBackStage.receive(new OperandImpl(22)); //Supply stage with a result value
		try {
			testExecuteToWriteQueue.put(testInstrDIV); //Put test instruction into queue for passing to wbStage
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			Thread.sleep(500); //Let t run for half a second
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		t.interrupt(); //Signal the thread to stop (handle an interrupt)
		while(t.isAlive()); //Wait for thread to die; ensures thread actually dies or assert is never reached
		assertEquals(22, ((Operand) genRegisters.read(3)).unwrapInteger()); //If successful, #22 should be stored in r3.
		
	}