@Test
public void testScheduledJobBinding_2() throws Exception {

	final String result = "{\"id\":\"job id\",\"app-name\":\"app\",\"cmd-name\":\"cmd\",\"job-name\":\"job\",\"cron\":\"* * *\"}";
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	// Test the serializer
	ScheduledJob job = new ScheduledJob( "job id" );
	job.setAppName( "app" );
	job.setCmdName( "cmd" );
	job.setJobName( "job" );
	job.setCron( "* * *" );
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, job );
	String s = writer.toString();
	Assert.assertEquals( result, s );
	// Test the deserializer
	ScheduledJob readJob = mapper.readValue( result, ScheduledJob.class );
	Assert.assertNotNull( readJob );
	Assert.assertEquals( job.getJobId(), readJob.getJobId());
	Assert.assertEquals( job.getJobName(), readJob.getJobName());
	Assert.assertEquals( job.getCmdName(), readJob.getCmdName());
	Assert.assertEquals( job.getAppName(), readJob.getAppName());
	Assert.assertEquals( job.getCron(), readJob.getCron());
}