@Test
  public void shouldSubmitBeneficiaryCaseForm() throws Exception {
    BeneficiaryInformation beneficiaryInformation =
        getBeneficiaryInformation(
            "f98589102c60fcc2e0f3c422bb361ebd",
            "cg1",
            UUID.randomUUID().toString(),
            "Albie-case",
            "ABC",
            "cg1",
            "null");
    model.put(CommcareGateway.BENEFICIARY_FORM_KEY, beneficiaryInformation);
    doReturn(getExpectedBeneficiaryCaseXml())
        .when(spyCommcareGateway)
        .getXmlFromObject(eq(BENEFICIARY_CASE_FORM_TEMPLATE_PATH), eq(model));

    spyCommcareGateway.createCase(beneficiaryInformation);

    verify(mockHttpClientService).post(someUrl, getExpectedBeneficiaryCaseXml());
  }