@Test
public void testDependencyInformationBinding_1() throws Exception {

	final String result = "{\"name\":\"/vm\",\"optional\":\"true\",\"resolved\":\"false\"}";
	ObjectMapper mapper = JSonBindingUtils.createObjectMapper();
	DependencyInformation info = new DependencyInformation( "/vm", true, false );
	StringWriter writer = new StringWriter();
	mapper.writeValue( writer, info );
	String s = writer.toString();
	Assert.assertEquals( result, s );
	DependencyInformation readInfo = mapper.readValue( result, DependencyInformation.class );
	Assert.assertEquals( info.getDependencyName(), readInfo.getDependencyName());
	Assert.assertEquals( info.isOptional(), readInfo.isOptional());
	Assert.assertEquals( info.isResolved(), readInfo.isResolved());
}