Collection<Session> sessions = admin.getSessions();
int size = sessions.size();
assertTrue( size >= 1);
Session found = null;
for (Session s: sessions) {
if (s.getUserName().equals("admin@teiid-security")) {
found = s;
break;
}
}
assertNotNull(found);
admin.terminateSession(found.getSessionId());
sessions = admin.getSessions();
assertTrue(sessions.size() == (size-1));
c.close();
}