public class AopAllianceMethodInterceptorAdapterTest {
@Test
public void testInvoke() throws Throwable {
MethodInvocation allianceInvocation = createMock(MethodInvocation.class);
MethodInterceptor mockShiroInterceptor = createMock(MethodInterceptor.class);
expect(mockShiroInterceptor.invoke(anyObject(AopAllianceMethodInvocationAdapter.class))).andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
return getCurrentArguments()[0];
}
});
final Object expectedValue = new Object();