@Test
public void testPojoToXmlWithoutAlias()
{

  EmployeeBean e = new EmployeeBean();
  e.setName("john");
  e.setEid(1);
  e.setDept("cs");
  e.setDateOfJoining(new DateTime().withYear(2015).withMonthOfYear(1).withDayOfYear(1).toDate());
  operator.setup(null);
  operator.in.process(e);
  Assert.assertEquals(1, validDataSink.collectedTuples.size());
  Assert.assertEquals(0, invalidDataSink.collectedTuples.size());
  String expected = "<EmployeeBean>" + "<name>john</name>"
      + "<dept>cs</dept>" + "<eid>1</eid>" + "<dateOfJoining>2015-01-01</dateOfJoining>"
      + "</EmployeeBean>";
  Assert.assertEquals(expected, validDataSink.collectedTuples.get(0));
}