private static void generateXMLForTimeEntry() { TimeEntry o = new TimeEntry(); o.setId(13); o.setIssueId(45); o.setActivityId(3); o.setProjectId(55); o.setUserId(66); o.setHours(123f); o.setComment("text here"); o.setSpentOn(new Date()); String xml = RedmineXMLGenerator.toXML(o); logger.debug(xml); }