assertNotNull("Default profiling rule is null", rule);
assertTrue("default rule unexpected, = " + rule.getId(), rule.getId().equals(DEFAULT_RULE));
assertTrue("default rule class not mapped", rule instanceof StandardProfilingRule);
// Test anonymous principal-rule
ProfilingRule anonRule = profiler.getRuleForPrincipal(new UserPrincipalImpl("anon"),
ProfileLocator.PAGE_LOCATOR);
assertNotNull("anonymous rule is null", anonRule);
assertTrue("anonymous rule is j1", anonRule.getId().equals(DEFAULT_RULE));
// Test Retrieving All Rules