### Question:
ArrayParameters { static Map<String, List<Integer>> updateParameterNamesToIndexes(Map<String, List<Integer>> parametersNameToIndex, List<ArrayParameter> arrayParametersSortedAsc) { for(Map.Entry<String, List<Integer>> parameterNameToIndexes : parametersNameToIndex.entrySet()) { List<Integer> newParameterIndex = new ArrayList<>(parameterNameToIndexes.getValue().size()); for(Integer parameterIndex : parameterNameToIndexes.getValue()) { newParameterIndex.add(computeNewIndex(parameterIndex, arrayParametersSortedAsc)); } parameterNameToIndexes.setValue(newParameterIndex); } return parametersNameToIndex; }    }### Answer:
@Test public void testUpdateParameterNamesToIndexes() { assertEquals( ImmutableMap.of("paramName", ImmutableList.of(3, 5)), ArrayParameters.updateParameterNamesToIndexes( Maps.newHashMap(ImmutableMap.of("paramName", (List<Integer>) ImmutableList.of(3, 5))), ImmutableList.of( new ArrayParameters.ArrayParameter(6, 3) ) ) ); assertEquals( ImmutableMap.of("paramName", ImmutableList.of(3, 9)), ArrayParameters.updateParameterNamesToIndexes( Maps.newHashMap(ImmutableMap.of("paramName", (List<Integer>) ImmutableList.of(3, 7))), ImmutableList.of( new ArrayParameters.ArrayParameter(6, 3) ) ) ); }