public void testDelegatingProxyInterfaceOrder()
{
final Echo echo = ( Echo ) factory.createDelegatorProxy( createSingletonEcho(), new Class[] { Echo.class, DuplicateEcho.class } );
final List expected = new LinkedList( Arrays.asList( new Class[] { Echo.class, DuplicateEcho.class } ) );
final List actual = new LinkedList( Arrays.asList( echo.getClass().getInterfaces() ) );
actual.retainAll( expected ); // Doesn't alter order!
assertEquals( expected, actual );
}
public void testCreateDelegatingProxy()
{