* @param driver Driver instance to test.
*
* @throws StoreException if there is an unexpected error during the sequence.
*/
protected void checkLoadSaveErase(Driver driver) throws StoreException {
ReadableDriver rdriver = (ReadableDriver)driver;
WritableDriver wdriver = (WritableDriver)driver;
assertFalse(wdriver.erase());
assertTrue(rdriver.isEmpty());
assertNull(rdriver.load());
wdriver.save(MOCK_KEY);
assertFalse(rdriver.isEmpty());
checkLoad(rdriver, MOCK_KEY);
wdriver.save(EMPTY_KEY);
assertFalse(rdriver.isEmpty());
checkLoad(rdriver, EMPTY_KEY);
assertTrue(wdriver.erase());
assertTrue(rdriver.isEmpty());
assertNull(rdriver.load());
assertFalse(wdriver.erase());
}