### Question:
ParamStringProcessor { Map<String, String> getNameToCommentMapping(ConstructorDoc constructorDoc) { ImmutableMap.Builder<String, String> nameToCommentMapping = ImmutableMap.builder(); Tag[] params = constructorDoc.tags("@param"); for (Tag param: params) { String[] text = param.text().split(" ", 2); String snakeCaseParamName = toLowerUnderscore(text[0]); String paramComment = text[1].trim(); nameToCommentMapping.put(snakeCaseParamName, paramComment); } return nameToCommentMapping.build(); }  String toLowerUnderscore(String lowerCamel);  }### Answer:
@Test public void testParamStringMapping() { Map<String, String> nameToCommentMap = getNameToCommentMapping(constructorDoc); Set<String> keySet = nameToCommentMap.keySet(); assertThat(keySet, hasItems(FIRST_PARAM_NAME_SNAKE_CASE, SECOND_PARAM_NAME_SNAKE_CASE)); assertThat(nameToCommentMap, hasEntry(equalTo(FIRST_PARAM_NAME_SNAKE_CASE), equalTo(FIRST_PARAM_COMMENT))); assertThat(nameToCommentMap, hasEntry(equalTo(SECOND_PARAM_NAME_SNAKE_CASE), equalTo(SECOND_PARAM_COMMENT))); assertThat(keySet, hasSize(2)); }