@Test public void testShortMethod() { BoxedClass target = new BoxedClass(); HandlerCallingTarget<BoxedClass> handler = new HandlerCallingTarget<BoxedClass>(target, new Object[] {(short) 98}); BoxedClass proxy = ProxyFactory.createProxy(BoxedClass.class, handler); assertEquals(98, proxy.testShort((short) 78).shortValue()); assertEquals("testShort", handler.m.getName()); }