return TestCacheManagerFactory.createCacheManager(cfg);
}
public void testIndexingWithWrapper() throws Exception {
// Store some test data:
ProtobufValueWrapper wrapper1 = new ProtobufValueWrapper(createMarshalledUser("Adrian", "Nistor"));
ProtobufValueWrapper wrapper2 = new ProtobufValueWrapper(createMarshalledUser("John", "Batman"));
cache.put(1, wrapper1); //todo how do we index if the key is a byte array?
cache.put(2, wrapper2);
SearchManager qf = Search.getSearchManager(cache);