final HexDigest fp = HexDigest.createFromString("0EA20CAA3CE696E561BC08B15E00106700E8F682");
config.addBridge(a1, 88);
config.addBridge(a2, 101, fp);
List<TorConfigBridgeLine> bs = config.getBridges();
assertEquals(2, bs.size());
final TorConfigBridgeLine b1 = bs.get(0);
final TorConfigBridgeLine b2 = bs.get(1);
assertEquals(a1, b1.getAddress());
assertEquals(a2, b2.getAddress());
assertEquals(88, b1.getPort());
assertEquals(101, b2.getPort());
assertNull(b1.getFingerprint());
assertSame(b2.getFingerprint(), fp);
}