@Test
public void test_getPolicy() throws Exception {

	// if service store returns null or throws an exception then return null policy
	when(_store.getPolicy(1L)).thenReturn(null);
	when(_store.getPolicy(2L)).thenThrow(new Exception());
	RangerPolicy policy = mock(RangerPolicy.class);
	when(_store.getPolicy(3L)).thenReturn(policy);
	
	Assert.assertNull(_validator.getPolicy(1L));
	Assert.assertNull(_validator.getPolicy(2L));
	Assert.assertTrue(_validator.getPolicy(3L) != null);
}