protected function _testCollectionHandler()
{
$collections = $this->getCollectionHandler();
// Initial state
$this->assertEquals(0, $collections->collectionCount());
// No syncable collections either, even though we have a synccache, none
// of the collections have a 'synckey' and have not been loaded into
// collection handler.
$this->assertEquals(false, $collections->haveSyncableCollections(Horde_ActiveSync::VERSION_TWOFIVE));
$this->assertEquals(false, $collections->haveSyncableCollections(Horde_ActiveSync::VERSION_TWELVEONE));
$this->assertEquals(2, $collections->cachedCollectionCount());
// Now load the collections
$collections->loadCollectionsFromCache();
$this->assertEquals(2, $collections->collectionCount());
$this->assertEquals(true, $collections->haveSyncableCollections(Horde_ActiveSync::VERSION_TWOFIVE));
$this->assertEquals(true, $collections->haveSyncableCollections(Horde_ActiveSync::VERSION_TWELVEONE));
}