### Question:
LiteralTransformFunction implements TransformFunction { public LiteralTransformFunction(String literal) { _literal = literal; } LiteralTransformFunction(String literal); static FieldSpec.DataType inferLiteralDataType(LiteralTransformFunction transformFunction); String getLiteral(); @Override String getName(); @Override void init(List<TransformFunction> arguments, Map<String, DataSource> dataSourceMap); @Override TransformResultMetadata getResultMetadata(); @Override Dictionary getDictionary(); @Override int[] transformToDictIdsSV(ProjectionBlock projectionBlock); @Override int[][] transformToDictIdsMV(ProjectionBlock projectionBlock); @Override int[] transformToIntValuesSV(ProjectionBlock projectionBlock); @Override long[] transformToLongValuesSV(ProjectionBlock projectionBlock); @Override float[] transformToFloatValuesSV(ProjectionBlock projectionBlock); @Override double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock); @Override String[] transformToStringValuesSV(ProjectionBlock projectionBlock); @Override byte[][] transformToBytesValuesSV(ProjectionBlock projectionBlock); @Override int[][] transformToIntValuesMV(ProjectionBlock projectionBlock); @Override long[][] transformToLongValuesMV(ProjectionBlock projectionBlock); @Override float[][] transformToFloatValuesMV(ProjectionBlock projectionBlock); @Override double[][] transformToDoubleValuesMV(ProjectionBlock projectionBlock); @Override String[][] transformToStringValuesMV(ProjectionBlock projectionBlock);  }### Answer:
@Test public void testLiteralTransformFunction() { Assert.assertEquals(LiteralTransformFunction.inferLiteralDataType(new LiteralTransformFunction("abc")), FieldSpec.DataType.STRING); Assert.assertEquals(LiteralTransformFunction.inferLiteralDataType(new LiteralTransformFunction("123")), FieldSpec.DataType.INT); Assert.assertEquals(LiteralTransformFunction.inferLiteralDataType(new LiteralTransformFunction("2147483649")), FieldSpec.DataType.LONG); Assert.assertEquals(LiteralTransformFunction.inferLiteralDataType(new LiteralTransformFunction("1.2")), FieldSpec.DataType.FLOAT); Assert.assertEquals(LiteralTransformFunction.inferLiteralDataType(new LiteralTransformFunction("41241241.2412")), FieldSpec.DataType.DOUBLE); }