* Test the creation of PropertyProfile with a no existing user, the PropertyProfile created is a general profile.
* @throws Exception
*/
@Test
public void createProfileWithoutUser() throws Exception {
DefaultPropertyProfile newProfile = new DefaultPropertyProfile(getDefaultRealm().getRealmID(), -1, "test3", "profile", "A profile", Calendar.getInstance(), Calendar.getInstance());
assertEquals("There should not be any PropertyProfile", 0, propertyDatabase.getPropertyProfiles("test1", true, 1).size());
PropertyProfile createdProfile = createResource(newProfile);
assertEquals("There should be two PropertyProfile", 1, propertyDatabase.getPropertyProfiles("test3", true, 1).size());
deleteResource(createdProfile);
assertEquals("There should not be any PropertyProfile", 0, propertyDatabase.getPropertyProfiles("test1", true, 1).size());