/**
* Tests that getting an existing user with an unique key-value pair works and yields the expected result.
*/
public void testGetExistingUserWithUniqueKeyValueOk() {
Role user1 = m_userAdmin.createRole("user1", Role.USER);
user1.getProperties().put("key1", "value1");
user1.getProperties().put("key2", "constant");
Role user2 = m_userAdmin.createRole("user2", Role.USER);
user2.getProperties().put("key1", "value2");
user2.getProperties().put("key2", "constant");
Role group1 = m_userAdmin.createRole("group1", Role.GROUP);
group1.getProperties().put("key1", "value3");
assertEquals(user1, m_userAdmin.getUser("key1", "value1"));
assertEquals(user2, m_userAdmin.getUser("key1", "value2"));
}