protected void validateConfig(Cache<VehicleId, Vehicle> vehicleCache) {
StoreConfiguration config = vehicleCache.getCacheConfiguration().persistence().stores().get(0);
assertTrue(config instanceof JpaStoreConfiguration);
JpaStoreConfiguration jpaConfig = (JpaStoreConfiguration) config;
assertEquals(1, jpaConfig.batchSize());
assertEquals(Vehicle.class, jpaConfig.entityClass());
assertEquals(PERSISTENCE_UNIT_NAME, jpaConfig.persistenceUnitName());
}
public void testXmlConfig60() throws IOException {