SimpleHBaseAdapter implements EnrichmentAdapter<CacheKey>,Serializable { @Override public boolean initializeAdapter(Map<String, Object> configuration) { String hbaseTable = config.getHBaseTable(); Configuration hbaseConfig = HBaseConfiguration.create(); try { lookup = new EnrichmentLookup( config.getProvider().getTable(hbaseConfig, hbaseTable) , config.getHBaseCF() , new NoopAccessTracker() ); } catch (IOException e) { LOG.error("Unable to initialize adapter: {}", e.getMessage(), e); return false; } return true; } SimpleHBaseAdapter();  SimpleHBaseAdapter(SimpleHBaseConfig config); SimpleHBaseAdapter withConfig(SimpleHBaseConfig config); @Override void logAccess(CacheKey value); boolean isInitialized(); @Override JSONObject enrich(CacheKey value); @Override boolean initializeAdapter(Map<String, Object> configuration); @Override void updateAdapter(Map<String, Object> config); @Override void cleanup(); @Override String getOutputPrefix(CacheKey value);  }
@Test public void testInitializeAdapter() { SimpleHBaseConfig config = new SimpleHBaseConfig(); SimpleHBaseAdapter sha = new SimpleHBaseAdapter(config); assertThrows(Exception.class, () -> sha.initializeAdapter(null)); }