one(request).getParameter("tpPagamento");will(returnValue("2"));
one(request).getParameter("idConv");will(returnValue("123456"));
one(request).getParameter("refTran");will(returnValue("123456789012345"));
}
});
BBFormualrioRetornoReturn formualrioRetornoReturn = new BBVerificaFormularioRetorno(request).handle();
Assert.assertEquals(BBTipoTransacao.BLOQUETO_BANCARIO,formualrioRetornoReturn.getTipoTransacao());
Assert.assertEquals(123456,formualrioRetornoReturn.getIdConv());
Assert.assertEquals("123456789012345",formualrioRetornoReturn.getRefTran());
}