public void testLoginHandler() throws Exception {
Session target = assertHasSession(root, "Success Session");
Frame success = assertHasFrame(target, "Success Page");
Session session = assertHasSession(root, "Session");
LoginHandler handler = assertHasLoginHandler(session, "role-based login handler for Session");
// the LoginHandler will have an outgoing ECARule to denote the success page
assertGenerated(assertHasECARule(root, handler, success, "success"));
// there is only three outgoing ActionEdges from the LoginHandler
List<String> actions = new ArrayList<String>();
for (ECARule e : handler.getListeners()) {
actions.add(e.getName());
}
assertCollectionEquals(actions, "login", "logout", "success");
}