@Test
public void list() throws Exception {

    Map<String, Object> result = rbacRegistry.list();
    assertThat(result.get("cache"), notNullValue());
    Map<String, Map<String, Object>> domains =
        (Map<String, Map<String, Object>>) result.get("domains");
    assertThat(domains, notNullValue());
    Map<String, Object> hawtioDomain = domains.get("hawtio");
    assertThat(hawtioDomain, notNullValue());
    assertThat(hawtioDomain.get("type=security,name=RBACRegistry"),
        notNullValue());
}