@Test
public void testNestedDataElementsForBagToStringUDF() throws Exception {
DataBag inputBag = buildBagWithNestedTupleAndBag();
BagToString udf = new BagToString();
Tuple udfInput = tf.newTuple(2);
udfInput.set(0, inputBag);
udfInput.set(1, "*");
String result = udf.exec(udfInput);
assertEquals("a*5*c*6*(d,7)*{(in bag,10)}", result);
}