@Test
public void test8populateRangerAccessTypeDefToXXNullValue() {

	RangerAccessTypeDef rangerAccessTypeDefObj = null;
	XXAccessTypeDef accessTypeDefObj = null;
	XXServiceDef serviceDefObj = null;
	Mockito.when(
			restErrorUtil.createRESTException(
					"RangerServiceDef cannot be null.",
					MessageEnums.DATA_NOT_FOUND)).thenThrow(
			new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	XXAccessTypeDef dbAccessTypeDef = rangerServiceDefService
			.populateRangerAccessTypeDefToXX(rangerAccessTypeDefObj,
					accessTypeDefObj, serviceDefObj, 1);
	Assert.assertNull(dbAccessTypeDef);
}