@Test
public void test11populateRangerPolicyConditionDefToXXnullValue() {

	RangerPolicyConditionDef rangerConditionDefvObj = null;
	XXPolicyConditionDef policyConditionDefObj = null;
	XXServiceDef serviceDefObj = null;
	Mockito.when(
			restErrorUtil.createRESTException(
					"RangerServiceDef cannot be null.",
					MessageEnums.DATA_NOT_FOUND)).thenThrow(
			new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	XXPolicyConditionDef dbPolicyConditionDef = rangerServiceDefService
			.populateRangerPolicyConditionDefToXX(rangerConditionDefvObj,
					policyConditionDefObj, serviceDefObj, 1);
	Assert.assertNull(dbPolicyConditionDef);
}