@Test public void testDoubleMethod() { BoxedClass target = new BoxedClass(); HandlerCallingTarget<BoxedClass> handler = new HandlerCallingTarget<BoxedClass>(target, new Object[] {765d}); BoxedClass proxy = ProxyFactory.createProxy(BoxedClass.class, handler); assertEquals(765d, proxy.testDouble(457.0d).doubleValue()); assertEquals("testDouble", handler.m.getName()); }