@Test
    public void testCacheCreation() throws Exception
    {
        // Setup test fixture.

        // Execute system under test.
        final Cache result = CacheFactory.createCache("unittest-cache-creation");

        // Verify results.
        assertNotNull(result);
    }
Asserts that a cache can be created.
xmppserver/src/test/java/org/jivesoftware/util/cache/CacheFactoryTest.java