/** Cleanup method. */
 @AfterClass
 protected void cleanUp() {
   BlogManagement bm = ServiceLocator.findService(BlogManagement.class);
   // remove the created test blogs
   try {
     Blog testBlog = bm.findBlogByIdentifier(BlogManagementTest.TEST_BLOG_IDENTIFIER);
     if (testBlog != null) {
       bm.deleteBlog(testBlog.getId(), null);
     }
   } catch (Exception e) {
     LOG.error("Clean up after test failed. ", e);
   }
 }