@Test
public void return_type_method_with_param()
{
ReturnTypeService delegate = newTestService();
HibernateSessionManager manager = newMock(HibernateSessionManager.class);
HibernateTransactionDecorator decorator = newHibernateSessionManagerDecorator(manager);
ReturnTypeService interceptor = decorator.build(ReturnTypeService.class, delegate, "foo.Bar");
delegate.returnTypeMethodWithParam(5, 3);
manager.commit();
replay();
Assert.assertEquals(interceptor.returnTypeMethodWithParam(5, 3), 8);
verify();