assertTrue(p2.equals(p1));
}
public void testProtocolSocketFactorySublass() {
ProtocolSocketFactory factory1 = new DefaultProtocolSocketFactory();
ProtocolSocketFactory factory2 = new DefaultProtocolSocketFactory() {};
Protocol protocolA = new Protocol("http", factory1, 80);
Protocol protocolB = new Protocol("http", factory2, 80);
Protocol protocolC = new Protocol("http", factory2, 80);