@Test
public void test39getPolicyForVersionNumber() throws Exception {

	XXDataHistDao xDataHistDao = Mockito.mock(XXDataHistDao.class);
	XXDataHist xDataHist = Mockito.mock(XXDataHist.class);
	Mockito.when(daoManager.getXXDataHist()).thenReturn(xDataHistDao);
	Mockito.when(xDataHistDao.findObjectByVersionNumber(Id, 1020, 1))
			.thenReturn(xDataHist);
	RangerPolicy dbRangerPolicy = serviceDBStore.getPolicyForVersionNumber(
			Id, 1);
	Assert.assertNull(dbRangerPolicy);
	Mockito.verify(daoManager).getXXDataHist();
}