public void testGroupCountEmpty() throws Exception
    {
        // Setup test fixture.
        final GroupManager groupManager = GroupManager.getInstance();

        // Execute system under test.
        final int result = groupManager.getGroupCount();

        // Verify result.
        assertEquals(0, result);
    }
Verifies that a {@link GroupManager#getGroupCount()} returns the correct count of groups when no groups
are present.
xmppserver/src/test/java/org/jivesoftware/openfire/group/GroupManagerNoMockTest.java