@Test
public void testTupleTypeInfoSymmetricEqualityRelation() {

	TupleTypeInfo<Tuple1<Integer>> tupleTypeInfo = new TupleTypeInfo<>(BasicTypeInfo.INT_TYPE_INFO);
	TupleTypeInfoBase<Tuple1> anonymousTupleTypeInfo = new TupleTypeInfoBase<Tuple1>(
		(Class<Tuple1>)Tuple1.class,
		(TypeInformation<?>)BasicTypeInfo.INT_TYPE_INFO) {
		private static final long serialVersionUID = -7985593598027660836L;
		@Override
		public TypeSerializer<Tuple1> createSerializer(ExecutionConfig config) {
			return null;
		}
		@Override
		protected TypeComparatorBuilder<Tuple1> createTypeComparatorBuilder() {
			return null;
		}
		@Override
		public String[] getFieldNames() {
			return new String[0];
		}
		@Override
		public int getFieldIndex(String fieldName) {
			return 0;
		}
	};
	boolean tupleVsAnonymous = tupleTypeInfo.equals(anonymousTupleTypeInfo);
	boolean anonymousVsTuple = anonymousTupleTypeInfo.equals(tupleTypeInfo);
	Assert.assertTrue("Equality relation should be symmetric", tupleVsAnonymous == anonymousVsTuple);
}