@AfterMethod public void deleteStorage() throws BusinessException, IOException, SerializationException {
  if (null != storageData) {
    if (storageManager.getRecordingState() == RecordingState.ON) {
      storageManager.stopRecording();
    }
    if (!storageManager.isStorageClosed(storageData)) {
      storageManager.closeStorage(storageData);
    }
    storageManager.deleteStorage(storageData);
    storageData=null;
  }
  assertThat(storageManager.getExistingStorages(),is(empty()));
}

@ AfterMethod public void deleteStorage ( ) throws BusinessException , IOException , SerializationException { if ( null != storageData ) { if ( storageManager . getRecordingState ( ) == RecordingState . ON ) { storageManager . stopRecording ( ) ; } if ( ! storageManager . isStorageClosed ( storageData ) ) { storageManager . closeStorage ( storageData ) ; } storageManager . deleteStorage ( storageData ) ; storageData = null ; } assertThat ( storageManager . getExistingStorages ( ) , is ( empty ( ) ) ) ; }
after processing to delete storage that might be created in the test .
