Map<String, String> attributes = new HashMap<String, String>();
attributes.putAll(reserved);
attributes.putAll(publicAttributes);
attributes.putAll(privateAttributes);
TokenInfo info = tokenProvider.createToken(userId, attributes);
Tree userTree = root.getTree(getUserManager().getAuthorizable(userId).getPath());
Tree tokens = userTree.getChild(".tokens");
assertTrue(tokens.exists());
assertEquals(1, tokens.getChildrenCount());