HostFromJSONListAdapter extends AbstractHostAdapter { @Override public boolean initializeAdapter(Map<String, Object> config) { if(_known_hosts.size() > 0) return true; else return false; } HostFromJSONListAdapter(String jsonList); @Override String getOutputPrefix(CacheKey value); @Override boolean initializeAdapter(Map<String, Object> config); @Override void updateAdapter(Map<String, Object> config); @Override void logAccess(CacheKey value); @SuppressWarnings("unchecked") @Override JSONObject enrich(CacheKey k);  }
@Test public void testInitializeAdapter() { HostFromJSONListAdapter hja = new HostFromJSONListAdapter(expectedKnownHostsString); assertTrue(hja.initializeAdapter(null)); }