question: public void test_simpleRemoval ( ) { final IRawStore store = new SimpleMemoryRawStore ( ) ; try { final Random r = new Random ( ) ; final HTreeIndexMetadata metadata = new HTreeIndexMetadata ( UUID . randomUUID ( ) ) ; metadata . setAddressBits ( 2 ) ; final HTree htree = HTree . create ( store , metadata ) ; final byte [ ] key = new byte [ ] { 1 , 2 , 3 } ; final byte [ ] val = new byte [ 24 ] ; r . nextBytes ( val ) ; assertNull ( htree . insert ( key , val ) ) ; assertEquals ( 1 , htree . getEntryCount ( ) ) ; final DirectoryPage root = ( DirectoryPage ) htree . getRoot ( ) ; TestCase3 . assertEquals ( val , htree . lookupFirst ( key ) ) ; htree . remove ( key ) ; assertEquals ( 0 , htree . getEntryCount ( ) ) ; TestCase3 . assertEquals ( null , htree . lookupFirst ( key ) ) ; } finally { store . destroy ( ) ; } }
target:  Just insert and remove a single key