client.setAttribute(key, value);
assertTrue("attributes not working", client.getAttribute(key) == value);
conn.initialize(client);
if (conn.connect(testApp)) {
// give connect a moment to settle
Thread.sleep(100L);
assertTrue("Should have a scope", conn.getScope() != null);
assertTrue("app should have 1 client", ((Scope) testApp).getActiveClients() == 1);
assertTrue("host should have 1 client", testApp.getParent().getClients().size() == 1);