### Question:
HBaseIndexerMapper extends TableMapper<Text, SolrInputDocumentWritable> { public static void configureIndexConnectionParams(Configuration conf, Map<String, String> connectionParams) { String confValue = Joiner.on(CONF_VALUE_SEPARATOR).withKeyValueSeparator(CONF_KEYVALUE_SEPARATOR).join( connectionParams); conf.set(INDEX_CONNECTION_PARAMS_CONF_KEY, confValue); }  static void configureIndexConnectionParams(Configuration conf, Map<String, String> connectionParams); static Map<String, String> getIndexConnectionParams(Configuration conf); static final String INDEX_NAME_CONF_KEY; static final String INDEX_COMPONENT_FACTORY_KEY; static final String INDEX_CONFIGURATION_CONF_KEY; static final String INDEX_CONNECTION_PARAMS_CONF_KEY; static final String INDEX_DIRECT_WRITE_CONF_KEY; static final String TABLE_NAME_CONF_KEY; }### Answer:
@Test public void testConfigureIndexConnectionParams() { Map<String,String> connectionParams = ImmutableMap.of("key1", "val1", "key2", "val2"); Configuration conf = new Configuration(); HBaseIndexerMapper.configureIndexConnectionParams(conf, connectionParams); assertEquals(connectionParams, HBaseIndexerMapper.getIndexConnectionParams(conf)); }