Test a connection

Tests the connection identified by its ID to verify that the credentials and configuration are valid.