### Question:
ReportJobConverter implements ToClientConverter<ReportJob, ClientReportJob, Object>, ToServerConverter<ClientReportJob, ReportJob, Object> { @Override public final ClientReportJob toClient(ReportJob serverObject, Object options) { ClientReportJob clientReportJob = new ClientReportJob(); clientReportJob.setId(serverObject.getId()); clientReportJob.setVersion(serverObject.getVersion()); clientReportJob.setUsername(serverObject.getUsername()); clientReportJob.setLabel(serverObject.getLabel()); clientReportJob.setDescription(serverObject.getDescription()); Timestamp creationDate = serverObject.getCreationDate(); clientReportJob.setCreationDate((creationDate != null) ? new Timestamp(creationDate.getTime()) : null); clientReportJob.setBaseOutputFilename(serverObject.getBaseOutputFilename()); clientReportJob.setOutputLocale(serverObject.getOutputLocale()); clientReportJob.setTrigger(toClientJobTrigger(serverObject.getTrigger())); try { clientReportJob.setSource(toClientJobSource(serverObject.getSource())); } catch (ClassCastException e) { log.error("Error interpreting parameter " + e.getMessage() + " of job " + serverObject.getLabel() + " of " + serverObject.getSource().getReportUnitURI(), e); } clientReportJob.setOutputTimeZone(serverObject.getOutputTimeZone()); clientReportJob.setRepositoryDestination(toClientJobRepositoryDestination(serverObject.getContentRepositoryDestination())); clientReportJob.setMailNotification(toClientJobMailNotification(serverObject.getMailNotification())); clientReportJob.setAlert(toClientJobAlert(serverObject.getAlert())); clientReportJob.setOutputFormats(toClientJobOutputFormats(serverObject.getOutputFormatsSet())); return clientReportJob; }  @Override final ClientReportJob toClient(ReportJob serverObject, Object options); @Override final String getClientResourceType(); @Override ReportJob toServer(ClientReportJob clientObject, Object options); @Override ReportJob toServer(ClientReportJob clientObject, ReportJob resultToUpdate, Object options); @Override String getServerResourceType();  }### Answer:
@Test public void testConvertServerObjectWithCalendarTriggerToClient() { ClientReportJob resultClientReportJob = converter.toClient(serverJobWithCalendarTrigger, null); assertEquals(resultClientReportJob, clientJobWithCalendarTrigger); }
@Test public void testConvertServerObjectWithSimpleTriggerToClient() { ClientReportJob resultClientReportJob = converter.toClient(serverJobWithSimpleTrigger, null); assertEquals(resultClientReportJob, clientJobWithSimpleTrigger); }
@Test public void testConvertServerObjectWithDefaultValuesToClient() { ClientReportJob resultClientReportJob = converter.toClient(new ReportJob(), null); assertNotNull(resultClientReportJob); }