xmlLog.setCommandName("test-cmd");
xmlLog.setIndex(2);
JaxbProcessInstanceLog newXmlLog = testRoundTrip(xmlLog);
ComparePair.compareObjectsViaFields(xmlLog, newXmlLog, "id");
ProcessInstanceLog newLog = newXmlLog.getResult();
ProcessInstanceLog origCmpLog = (ProcessInstanceLog) origLog;
assertEquals( origLog.getExternalId(), newLog.getExternalId() );
assertEquals( origCmpLog.getIdentity(), newLog.getIdentity());
assertEquals( origCmpLog.getOutcome(), newLog.getOutcome());
assertEquals( origCmpLog.getProcessId(), newLog.getProcessId() );
assertEquals( origCmpLog.getProcessName(), newLog.getProcessName() );
assertEquals( origCmpLog.getProcessVersion(), newLog.getProcessVersion() );
assertEquals( origCmpLog.getDuration(), newLog.getDuration() );
assertEquals( origCmpLog.getEnd(), newLog.getEnd() );
assertEquals( origCmpLog.getParentProcessInstanceId(), newLog.getParentProcessInstanceId() );
assertEquals( origCmpLog.getProcessInstanceId(), newLog.getProcessInstanceId() );
assertEquals( origCmpLog.getStart(), newLog.getStart() );
assertEquals( origCmpLog.getStatus(), newLog.getStatus() );
}