### Question:
AbstractTextDataSourceDefinition extends DataAdapterDefinition { protected Class<? extends Number> getNumericType(Object value, JRDesignField field) { Number number = null; if (value instanceof Number) { number = (Number) value; } else if (value instanceof String) { number = stringToNumber((String) value); } return number == null ? null : number.getClass(); }  int getRowCountForMetadataDiscovery(); void setRowCountForMetadataDiscovery(int rowCountForMetadataDiscovery); static boolean containsValue(List<?> list); static Map<String, String> getDefaultFieldMapping(List<String> fieldNames); static Map<String, String> getFieldMapping(List<String> fieldNames); static boolean isValidFieldName(String fieldName);  }### Answer:
@Test public void testGetNumericType() { Map<Object, Class<?>> input2ExpectedMap = getInput2ExpectedMap(); for (Map.Entry<Object, Class<?>> testCaseData : input2ExpectedMap.entrySet()) { Class<?> actual = new TestableAbstractTextDataSourceDefinition().getNumericType(testCaseData.getKey(), null); String testCaseDescription = "input:" + String.valueOf(testCaseData.getKey()); Assert.assertEquals(testCaseDescription, testCaseData.getValue(), actual); } }