try {
createSampleUser();
createSampleWeblog();
// delete user-weblog permission
MemberEntrySet mesDelete = deleteSampleMember(true);
assertNotNull(mesDelete);
assertEquals(0, mesDelete.getEntries().length);
//create
MemberEntrySet mesCreate = createSampleMember();
assertNotNull(mesCreate);
assertNotNull(mesCreate.getEntries());
assertEquals(mesCreate.getEntries().length, 1);
assertEquals(mesCreate, getSampleMemberEntrySet());
//get
MemberEntrySet mesFetch = fetchSampleMember();
assertNotNull(mesFetch);
assertNotNull(mesFetch.getEntries());
assertEquals(mesFetch.getEntries().length, 1);
assertEquals(mesFetch, mesCreate);
//update
MemberEntrySet mesUpdate = updateSampleMember();
assertNotNull(mesUpdate);
assertNotNull(mesUpdate.getEntries());
assertEquals(mesUpdate.getEntries().length, 1);
assertEquals(mesUpdate, updateSampleMemberEntrySet(getSampleMemberEntrySet()));
//delete
mesDelete = deleteSampleMember(true);
assertNotNull(mesDelete);