int oldUserCount = m_db.groups().length;
// Create a new group with random name
String name = "TestGroup" + String.valueOf( System.currentTimeMillis() );
Group group = new Group( name, m_wiki );
Principal al = new WikiPrincipal( "Al" );
Principal bob = new WikiPrincipal( "Bob" );
group.add( al );
group.add( bob );
m_db.save(group, new WikiPrincipal( "Tester") );
// Make sure the profile saved successfully
group = backendGroup( name );
assertEquals( name, group.getName() );
assertEquals( oldUserCount+1, m_db.groups().length );