houseSeriesOne.setPolicyType(policyTypeHouse);
policyTypeHouse.getTypeSeries().add(houseSeriesOne);
policyTypeDAO.persistPolicyType(policyTypeHouse);
for (long i = 1; i <= 5; i++) {
final BlankPolicy blankPolicy = new BlankPolicy(new PolicyId(houseSeriesOne, i));
blankPolicy.setInventoryPolicyState(BlankState.FILLED);
blankPolicy.setAgent(employee);
blankPolicyDAO.persistPolicy(blankPolicy);
}
for (long i = 6; i <= 10; i++) {
final BlankPolicy blankPolicy = new BlankPolicy(new PolicyId(houseSeriesOne, i));
blankPolicyDAO.persistPolicy(blankPolicy);
}
final Long retrivedEmptyBlankPolicyCount = blankPolicyDAO.existingEmptyBlankPolicyCount(houseSeriesOne, 1, 10);