txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/ConnectionInformation.java
public static ConnectionInformation fromConnection(Connection connection) {
    final ConnectionInformation connectionInformation = new ConnectionInformation();
    connectionInformation.connection = connection;
    return connectionInformation;
  }
public static ConnectionInformation fromConnection(Connection connection) {
    final ConnectionInformation connectionInformation = new ConnectionInformation();
    connectionInformation.connection = connection;
    return connectionInformation;
  }
This method should only be used in test scenarios

@param connection the underlying connection (possibly a mock)
@return a new {@link ConnectionInformation} instance