@Test
public void test1mapViewToEntityBean() {

	RangerTagDef rangerTagDef = new RangerTagDef();
	rangerTagDef.setId(id);
	rangerTagDef.setGuid(guid);
	
	XXTagDef xxTagDef = new XXTagDef();
	xxTagDef.setId(id);
	xxTagDef.setGuid(guid);
	xxTagDef.setName(name);
	xxTagDef.setVersion(version);
	int operationContext = 1;
	XXTagDef result = rangerTagDefService.mapViewToEntityBean(rangerTagDef,xxTagDef,operationContext);
	Assert.assertNotNull(result);
	Assert.assertEquals(result, xxTagDef);
	Assert.assertEquals(result.getGuid(), xxTagDef.getGuid());
	Assert.assertEquals(result.getName(), xxTagDef.getName());
	Assert.assertEquals(result.getId(), xxTagDef.getId());
	Assert.assertEquals(result.getVersion(), xxTagDef.getVersion());
}