@Test
public void testPushPolicy() throws ServletException, PAPException {

    PolicyVersion versionData = new PolicyVersion();
    versionData.setPolicyName("com" + File.separator + "Config_Test");
    versionData.setActiveVersion(1);
    versionData.setHigherVersion(1);
    List<Object> data = new ArrayList<>();
    data.add(versionData);
    when(commonClassDao.getDataById(PolicyVersion.class, "policyName", "com" + File.separator + "Config_Test"))
            .thenReturn(data);
    pap = new XACMLPapServlet();
    pap.init(servletConfig);
    callPushPolicy();
    when(commonClassDao.getDataById(PolicyVersion.class, "policyName", "com" + File.separator + "Config_Test"))
            .thenReturn(null);
    callPushPolicy();
}