buildPostSubmissionUri (path: string, req: express.Request, res: express.Response): string {
    const model: PaymentOption = req.body.model

    if (model.isOfType(PaymentType.INSTALMENTS)) {
      return this.buildTaskListUri(req, res)
    }

    return super.buildPostSubmissionUri(path, req, res)
  }
 it('should return true if option is by set date and by set date is passed', () => {
   const paymentOption: PaymentOption = new PaymentOption(PaymentType.BY_SET_DATE)
   expect(paymentOption.isOfType(PaymentType.BY_SET_DATE)).to.be.true
 })
 it('should return true if option is by set date and by instalments is passed', () => {
   const paymentOption: PaymentOption = new PaymentOption(PaymentType.BY_SET_DATE)
   expect(paymentOption.isOfType(PaymentType.INSTALMENTS)).to.be.false
 })
 it('should return true if option is instalments and instalments is passed', () => {
   const paymentOption: PaymentOption = new PaymentOption(PaymentType.INSTALMENTS)
   expect(paymentOption.isOfType(PaymentType.INSTALMENTS)).to.be.true
 })
 it('should return false if option is not set', () => {
   const paymentOption: PaymentOption = new PaymentOption()
   expect(paymentOption.isOfType(PaymentType.INSTALMENTS)).to.be.false
 })
 it('should deserialize all fields', () => {
   expect(PaymentOption.fromObject({ option: PaymentType.INSTALMENTS.value })).to.deep.equal(new PaymentOption(PaymentType.INSTALMENTS))
 })
 it('should leave missing fields undefined', () => {
   expect(PaymentOption.fromObject({})).to.deep.equal(new PaymentOption())
 })
 it('should return undefined when value is undefined', () => {
   expect(PaymentOption.fromObject(undefined)).to.be.equal(undefined)
 })