codjo/codjo-test — pull request #3 by gonnot (2012-03-05 22:03:57+00:00)
Title: The equals method is now correctly handled by the JDBC mock layer

### Context

The delegator mechanism, used to implements JDBC mocks in a JDK version independent way, does not smartly handle the equality between the same mock instance (i.e. returns not equals).

### Description

Starting now, the equals method is delegated to the mock by flattening the method's parameter (i.e. remove the proxy wrapper, if any).

As a result, the following unit test succeed:

ConnectionMock mock=...;
assertTrue(mock.getStub().equals(mock.getStub()));