### Question:
ExtractorConfig extends BaseConfig<T, ExtractorConfig> implements Serializable, Cloneable { public Integer getInteger(String key) { try { return getValue(Integer.class, key); } catch (ClassCastException e) { String value = getString(key); return Integer.parseInt(value.split(",")[0]); } } ExtractorConfig(Class<T> t);  ExtractorConfig(); Map<String, Serializable> getValues(); void setValues(Map<String, Serializable> values); ExtractorConfig<T> putValue(String key, Serializable value); @Override String getExtractorImplClassName(); @Override void setExtractorImplClassName(String extractorImplClassName); String getString(String key); Class getClass(String key); Integer getInteger(String key); Boolean getBoolean(String key); String[] getStringArray(String key); Double getDouble(String key); Float getFloat(String key); Long getLong(String key); Short getShort(String key); Byte[] getByteArray(String key); Filter[] getFilterArray(String key); Pair<K, V> getPair(String key, Class<K> keyClass, Class<V> valueClass); @Override String toString(); W getValue(Class<W> clazz, String key);  }### Answer:
@Test public void testGetInteger() throws Exception { String value = "1234"; ExtractorConfig extractorConfig = new ExtractorConfig(); Map<String, Serializable> values = new HashedMap(); values.put(value,value); extractorConfig.setValues(values); Integer result = extractorConfig.getInteger(value); assertEquals("The result must be "+value, new Integer(value),result); }