@Test
public void testCastTo(){

	Assert.assertTrue(EvaluationUtil.castTo("true", Types.BOOLEAN) instanceof Boolean);
	Assert.assertTrue(EvaluationUtil.castTo(true, Types.BOOLEAN) instanceof Boolean);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.SHORT) instanceof Short);
	Assert.assertTrue(EvaluationUtil.castTo((short)1, Types.SHORT) instanceof Short);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.INT) instanceof Integer);
	Assert.assertTrue(EvaluationUtil.castTo(1, Types.INT) instanceof Integer);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.LONG) instanceof Long);
	Assert.assertTrue(EvaluationUtil.castTo(1L, Types.LONG) instanceof Long);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.BYTE) instanceof Byte);
	Assert.assertTrue(EvaluationUtil.castTo((byte)1, Types.BYTE) instanceof Byte);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.FLOAT) instanceof Float);
	Assert.assertTrue(EvaluationUtil.castTo((float)1, Types.FLOAT) instanceof Float);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.DOUBLE) instanceof Double);
	Assert.assertTrue(EvaluationUtil.castTo((double)1, Types.DOUBLE) instanceof Double);
	Assert.assertTrue(EvaluationUtil.castTo("1", Types.STRING) instanceof String);
	thrown.expect(RuntimeException.class);
	thrown.expectMessage("unsupported type: org.apache.flink.api.common.typeinfo.BasicTypeInfo");
	EvaluationUtil.castTo("1", Types.BIG_DEC);
}