@Test
    void testGetArguments() throws Exception {
        MethodInvocation mock = createMock(MethodInvocation.class);
        Object[] args = new Object[0];
        expect(mock.getArguments()).andReturn(args);
        AopAllianceMethodInvocationAdapter underTest = new AopAllianceMethodInvocationAdapter(mock);

        replay(mock);

        assertSame(args, underTest.getArguments());

        verify(mock);
    }
Created by IntelliJ IDEA.
User: jbunting
Date: 6/18/11
Time: 5:02 PM
To change this template use File | Settings | File Templates.
support/guice/src/test/java/org/apache/shiro/guice/aop/AopAllianceMethodInvocationAdapterTest.java