try {
cm = TestCacheManagerFactory.fromXml("configs/mixed.xml");
Cache first = cm.getCache("first");
Cache second = cm.getCache("second");
JdbcMixedCacheStore firstCs = (JdbcMixedCacheStore) TestingUtil.extractComponent(first, CacheLoaderManager.class).getCacheLoader();
JdbcMixedCacheStore secondCs = (JdbcMixedCacheStore) TestingUtil.extractComponent(second, CacheLoaderManager.class).getCacheLoader();
String quote = firstCs.getStringBasedCacheStore().getTableManipulation().getIdentifierQuoteString();
assertTableExistence(firstCs.getConnectionFactory().getConnection(), quote, "ISPN_MIXED_STR_TABLE_second", "ISPN_MIXED_STR_TABLE_first", "ISPN_MIXED_STR_TABLE");
assertTableExistence(firstCs.getConnectionFactory().getConnection(), quote, "ISPN_MIXED_BINARY_TABLE_second", "ISPN_MIXED_BINARY_TABLE_first", "ISPN_MIXED_BINARY_TABLE");
assertNoOverlapingState(first, second, firstCs, secondCs);
Person person1 = new Person(29, "Mircea");
Person person2 = new Person(29, "Manik");
first.put("k", person1);
assert firstCs.containsKey("k");
assert !secondCs.containsKey("k");
assert first.get("k").equals(person1);
assert second.get("k") == null;
second.put("k2", person2);
assert second.get("k2").equals(person2);