@Test
public void test1MapViewToEntityBean() {

	RangerServiceDef rangerServiceDef = rangerServiceDef();
	XXServiceDef serviceDef = serviceDef();
	int operationContext = 1;
	XXServiceDef dbServiceDef = rangerServiceDefService
			.mapViewToEntityBean(rangerServiceDef, serviceDef,
					operationContext);
	Assert.assertNotNull(dbServiceDef);
	Assert.assertEquals(dbServiceDef, serviceDef);
	Assert.assertEquals(dbServiceDef.getDescription(),
			serviceDef.getDescription());
	Assert.assertEquals(dbServiceDef.getGuid(), serviceDef.getGuid());
	Assert.assertEquals(dbServiceDef.getName(), serviceDef.getName());
	Assert.assertEquals(dbServiceDef.getAddedByUserId(),
			serviceDef.getAddedByUserId());
	Assert.assertEquals(dbServiceDef.getId(), serviceDef.getId());
	Assert.assertEquals(dbServiceDef.getVersion(), serviceDef.getVersion());
	Assert.assertEquals(dbServiceDef.getImplclassname(),
			serviceDef.getImplclassname());
	Assert.assertEquals(dbServiceDef.getUpdatedByUserId(),
			serviceDef.getUpdatedByUserId());
}