question: public void objectEvicted ( ICacheEntry < K , T > entry ) { if ( ! expectingEvent ) { throw new IllegalStateException ( "Not expecting event: " + entry ) ; } if ( haveEvent ) { throw new IllegalStateException ( "Already have an event: " + entry ) ; } haveEvent = true ; if ( events . size ( ) == 0 ) { throw new IllegalStateException ( "No expected events: " + entry ) ; } Event e = ( Event ) events . remove ( 0 ) ; assertEquals ( "oid" , e . expectedOid , entry . getKey ( ) ) ; assertTrue ( "obj" , e . expectedObj == entry . getObject ( ) ) ; assertEquals ( "dirty" , e . expectedDirty , entry . isDirty ( ) ) ; }
target:  Verify that event data is consistent with our expectations.