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);
}
@Test(expected=java.lang.RuntimeException.class)