stringBasedCacheStore.start();
assert stringBasedCacheStore.getConnectionFactory() == null;
// this will make sure that if a method like stop is called on the connection then it will barf an exception
ConnectionFactory connectionFactory = mock(ConnectionFactory.class);
TableManipulation tableManipulation = mock(TableManipulation.class);
tableManipulation.start(connectionFactory);
tableManipulation.setCacheName("otherName");
stringBasedCacheStore.initializeConnectionFactory(connectionFactory);
//stop should be called even if this is an external
reset(tableManipulation, connectionFactory);
tableManipulation.stop();
stringBasedCacheStore.stop();
}