cacheAttributes.put("is-server", Boolean.toString(cache.isServer())); cacheAttributes.put("lock-timeout", Integer.toString(cache.getLockTimeout())); cacheAttributes.put("lock-lease", Integer.toString(cache.getLockLease()));
&& other.getSearchTimeout() == this.getSearchTimeout() && other.getMessageSyncInterval() == this.getMessageSyncInterval() && other.getCopyOnRead() == this.getCopyOnRead() && other.isServer() == this.isServer();
doAnswer(newSetter(searchTimeout, null)).when(mockCache).setSearchTimeout(anyInt()); when(mockCache.isServer()).thenReturn(true); when(mockCache.getCacheServers()).thenAnswer(invocation -> Collections.unmodifiableList(cacheServers)); when(mockCache.getLockLease()).thenAnswer(newGetter(lockLease));