JdbcWriter extends AbstractJdbcCallback implements CacheWriter<K, V> { @Override public void beforeRegionDestroy(RegionEvent<K, V> event) throws CacheWriterException { } @SuppressWarnings("unused")  JdbcWriter();   JdbcWriter(SqlHandler sqlHandler, InternalCache cache); @Override void beforeUpdate(EntryEvent<K, V> event); @Override void beforeCreate(EntryEvent<K, V> event); @Override void beforeDestroy(EntryEvent<K, V> event); @Override void beforeRegionDestroy(RegionEvent<K, V> event); @Override void beforeRegionClear(RegionEvent<K, V> event);  }
@SuppressWarnings("unchecked") @Test public void beforeRegionDestroyDoesNotWriteToSqlHandler() { writer.beforeRegionDestroy(mock(RegionEvent.class)); verifyNoMoreInteractions(sqlHandler); }