### Question:
CategoricalValueEncodings implements Serializable { public Map<Integer,String> getEncodingValueMap(int index) { return doGetMap(index).inverse(); } CategoricalValueEncodings(Map<Integer,? extends Collection<String>> distinctValues); Map<String,Integer> getValueEncodingMap(int index); Map<Integer,String> getEncodingValueMap(int index); int getValueCount(int index); Map<Integer,Integer> getCategoryCounts(); @Override String toString();  }### Answer:
@Test public void testValue() { CategoricalValueEncodings encodings = makeTestValues(); Map<Integer,String> valueEncoding = encodings.getEncodingValueMap(2); assertEquals("3", valueEncoding.get(0)); assertEquals("2", valueEncoding.get(1)); assertEquals("1", valueEncoding.get(2)); assertEquals("0", valueEncoding.get(3)); }