@@ -0,0 +1,1658 @@
+/**%0A * Copyright (C) 2009-2013 FoundationDB, LLC%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.foundationdb.sql.pg;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.sql.SQLException;%0Aimport java.util.Map;%0A%0Apublic class PostgresServerProtocolV2IT extends PostgresServerITBase%0A%7B%0A    @Override%0A    protected Map%3CString, String%3E startupConfigProperties() %7B%0A        return uniqueStartupConfigProperties(PostgresServerProtocolV2IT.class);%0A    %7D%0A%0A    @Override%0A    protected String getConnectionURL() %7B%0A        return super.getConnectionURL() + %22?protocolVersion=2%22;%0A    %7D%0A    %0A    @Test%0A    public void checkRejection() throws Exception %7B%0A        try %7B%0A            openConnection();%0A        %7D%0A        catch (SQLException ex) %7B%0A            assertTrue(%22message is readable%22, %0A                       (ex.getMessage().indexOf(%22Unsupported protocol version 2%22) %3E 0));%0A            return;%0A        %7D%0A        fail(%22Expected connection to be rejected.%22);%0A    %7D%0A%0A%7D%0A

Add an IT for that.