@Test
 public void spillingOfCompoundIntervalSetsTheSpillInterval() {
   Register r = new Register(0);
   CompoundInterval ci = new CompoundInterval(DEFAULT_BEGIN, DEFAULT_END, r);
   RegisterAllocatorState regAllocState = new RegisterAllocatorState(1);
   assertThat(ci.isSpilled(regAllocState), is(false));
   ci.spill(new MockSpillLocationManager(), regAllocState);
   assertThat(ci.getSpillInterval().getOffset(), is(SPILL_INTERVAL_OFFSET));
   assertThat(ci.getSpillInterval().getSize(), is(SPILL_INTERVAL_SIZE));
   assertThat(ci.isSpilled(regAllocState), is(true));
 }