*
* @author gojomo
*/
public class ServerCacheTest extends TestCase {
public void testHolds() throws Exception {
DefaultServerCache servers = new DefaultServerCache();
String serverKey = "www.example.com:9090";
String hostKey = "www.example.com";
servers.getServerFor(serverKey);
servers.getHostFor(hostKey);
assertTrue("cache lost server", servers.containsServer(serverKey));
assertTrue("cache lost host", servers.containsHost(hostKey));
}