@Test
public void dirtyDetectionWorksInsideArrays() {

    SampleClass enhanced = enhancer.newInstance();
    ((Snapshot) enhanced).snapshot();
    enhanced.setBits(new boolean[] { false, true });
    assertDirty(enhanced, true);
    enhanced.setBits(new SampleClass().getBits());
    assertDirty(enhanced, false);
}