}
}
@Test
public void testGetAuthorizableId() throws Exception {
UserProvider up = createUserProvider();
String userID = "Amanda";
Tree user = up.createUser(userID, null);
assertEquals(userID, up.getAuthorizableId(user, Type.USER));
assertEquals(userID, up.getAuthorizableId(user, Type.AUTHORIZABLE));
assertNull(up.getAuthorizableId(user, Type.GROUP));
String groupID = "visitors";
Tree group = up.createGroup(groupID, null);
assertEquals(groupID, up.getAuthorizableId(group, Type.GROUP));
assertEquals(groupID, up.getAuthorizableId(group, Type.AUTHORIZABLE));
assertNull(up.getAuthorizableId(group, Type.USER));
}