ClientServerSessionCache extends AbstractSessionCache { @Override public boolean isBackingCacheAvailable() { if (getSessionManager().isCommitValveFailfastEnabled()) { PoolImpl pool = findPoolInPoolManager(); return pool.isPrimaryUpdaterAlive(); } return true; } ClientServerSessionCache(SessionManager sessionManager, ClientCache cache); @Override void initialize(); @Override String getDefaultRegionAttributesId(); @Override boolean getDefaultEnableLocalCache(); @Override void touchSessions(Set<String> sessionIds); @Override boolean isPeerToPeer(); @Override boolean isClientServer(); @Override Set<String> keySet(); @Override int size(); @Override boolean isBackingCacheAvailable(); @Override GemFireCache getCache();  }
@Test public void isBackingCacheEnabledReturnsTrueWhenCommitValveFailfastDisabled() { assertThat(sessionCache.isBackingCacheAvailable()).isTrue(); }