@Test
    void testGetThis() throws Exception {
        MethodInvocation mock = createMock(MethodInvocation.class);
        Object value = new Object();
        expect(mock.getThis()).andReturn(value);
        AopAllianceMethodInvocationAdapter underTest = new AopAllianceMethodInvocationAdapter(mock);

        replay(mock);

        assertSame(value, underTest.getThis());

        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