@Test
public void test2MapEntityToViewBean() {

	RangerServiceDef rangerServiceDef = rangerServiceDef();
	XXServiceDef serviceDef = serviceDef();
	RangerServiceDef dbRangerServiceDef = rangerServiceDefService
			.mapEntityToViewBean(rangerServiceDef, serviceDef);
	Assert.assertNotNull(dbRangerServiceDef);
	Assert.assertEquals(dbRangerServiceDef, rangerServiceDef);
	Assert.assertEquals(dbRangerServiceDef.getDescription(),
			rangerServiceDef.getDescription());
	Assert.assertEquals(dbRangerServiceDef.getGuid(),
			rangerServiceDef.getGuid());
	Assert.assertEquals(dbRangerServiceDef.getName(),
			rangerServiceDef.getName());
	Assert.assertEquals(dbRangerServiceDef.getId(),
			rangerServiceDef.getId());
	Assert.assertEquals(dbRangerServiceDef.getVersion(),
			rangerServiceDef.getVersion());
}