@Test
public void testPojoType() {

	TypeInformation<?> ti = TypeInfoParser.parse(
			"org.apache.flink.api.java.typeutils.TypeInfoParserTest$MyPojo<"
			+ "basic=Integer,"
			+ "tuple=Tuple2<String, Integer>,"
			+ "hadoopCitizen=Writable<org.apache.flink.api.java.typeutils.TypeInfoParserTest$MyWritable>,"
			+ "array=String[]"
			+ ">");
	Assert.assertTrue(ti instanceof PojoTypeInfo);
	PojoTypeInfo<?> pti = (PojoTypeInfo<?>) ti;
	Assert.assertEquals("array", pti.getPojoFieldAt(0).getField().getName());
	Assert.assertTrue(pti.getPojoFieldAt(0).getTypeInformation() instanceof BasicArrayTypeInfo);
	Assert.assertEquals("basic", pti.getPojoFieldAt(1).getField().getName());
	Assert.assertTrue(pti.getPojoFieldAt(1).getTypeInformation() instanceof BasicTypeInfo);
	Assert.assertEquals("hadoopCitizen", pti.getPojoFieldAt(2).getField().getName());
	Assert.assertTrue(pti.getPojoFieldAt(2).getTypeInformation() instanceof WritableTypeInfo);
	Assert.assertEquals("tuple", pti.getPojoFieldAt(3).getField().getName());
	Assert.assertTrue(pti.getPojoFieldAt(3).getTypeInformation() instanceof TupleTypeInfo);
}