@Test
  public void testEnvioFicherosAAplicacionRechazo() {

    // Crear el asiento registral
    AsientoRegistralFormVO asientoForm = TestUtils.createDefaultAsientoRegistralFormVO();
    asientoForm.setCodigoEntidadRegistral("ER0000000000000000002");
    AsientoRegistralVO asiento =
        fwktd_sir_asientoRegistralManager.enviarAsientoRegistral(asientoForm);
    Assert.assertNotNull(asiento);

    // Establecer el asiento registral como enviado
    asiento.setEstado(EstadoAsientoRegistralEnum.ENVIADO_Y_ACK);
    asiento.setFechaEstado(new Date());
    asiento.setFechaEnvio(new Date());
    asiento = fwktd_sir_asientoRegistralManager.update(asiento);

    // Construir el XML del mensaje
    String ficheroIntercambio =
        TestUtils.createXMLFicheroIntercambio(
            asiento.getIdentificadorIntercambio(), TipoAnotacionEnum.RECHAZO, true);

    // Enviar el mensaje
    RespuestaWS respuesta = getWSSIR8BService().envioFicherosAAplicacion(ficheroIntercambio, null);

    Assert.assertNotNull(respuesta);
    Assert.assertEquals(ErroresEnum.OK.getValue(), respuesta.getCodigo());
  }
  @Test
  public void testEnvioFicherosAAplicacionReenvio() {

    // Construir el XML del mensaje
    String ficheroIntercambio =
        TestUtils.createXMLFicheroIntercambio(
            IDENTIFICADOR_INTERCAMBIO, TipoAnotacionEnum.REENVIO, true);

    // Enviar el mensaje
    RespuestaWS respuesta = getWSSIR8BService().envioFicherosAAplicacion(ficheroIntercambio, null);

    Assert.assertNotNull(respuesta);
    Assert.assertEquals(ErroresEnum.OK.getValue(), respuesta.getCodigo());
  }