JdbcLoader extends AbstractJdbcCallback implements CacheLoader<K, V> { @Override @SuppressWarnings("unchecked") public V load(LoaderHelper<K, V> helper) throws CacheLoaderException { checkInitialized(helper.getRegion()); try { return (V) getSqlHandler().read(helper.getRegion(), helper.getKey()); } catch (SQLException e) { throw JdbcConnectorException.createException(e); } } @SuppressWarnings("unused")  JdbcLoader();   JdbcLoader(SqlHandler sqlHandler, InternalCache cache); @Override @SuppressWarnings("unchecked") V load(LoaderHelper<K, V> helper);  }
@Test public void loadReadsFromSqlHandler() throws Exception { loader.load(loaderHelper); verify(sqlHandler, times(1)).read(any(), any()); }