Source:
<code>public void test_state_dump() throws Exception { cacheManager.createCache("cache-2", newCacheConfigurationBuilder( String.class, String.class, newResourcePoolsBuilder() .heap(10, EntryUnit.ENTRIES) .offheap(1, MemoryUnit.MB) .with(clusteredDedicated("primary-server-resource", 2, MemoryUnit.MB))) .build()); Properties properties = new Properties(); properties.setProperty(ConnectionPropertyNames.CONNECTION_TIMEOUT, String.valueOf("5000")); properties.setProperty(ConnectionPropertyNames.CONNECTION_NAME, "diagnostic"); properties.setProperty(PROP_REQUEST_TIMEOUT, "5000"); <START> properties.setProperty(PROP_REQUEST_TIMEOUTMESSAGE, "5000"); <END> URI uri = URI.create("diagnostic://" + CLUSTER.getConnectionURI().getAuthority()); Connection connection = ConnectionFactory.connect(uri, properties); EntityRef<Diagnostics, Object, Void> ref = connection.getEntityRef(Diagnostics.class, 1, "root"); Diagnostics diagnostics = ref.fetchEntity(null); String dump = diagnostics.getClusterState(); assertThat(dump, containsString("clientCount=")); assertThat(dump, containsString("clientDescriptor=")); assertThat(dump, containsString("clientIdentifier=")); assertThat(dump, containsString("attached=")); assertThat(dump, containsString("managerIdentifier=")); assertThat(dump, containsString("defaultServerResource=primary-server-resource")); assertThat(dump, containsString("serverResource=")); assertThat(dump, containsString("size=")); assertThat(dump, containsString("configured=true")); assertThat(dump, containsString("storeIdentifier=")); assertThat(dump, containsString("storedKeyType=")); assertThat(dump, containsString("storedValueType=")); assertThat(dump, containsString("keySerializerType=")); assertThat(dump, containsString("valueSerializerType=")); assertThat(dump, containsString("consistency=")); assertThat(dump, containsString("resourceName=")); }</code><technical_language>5000 ? a weird message / gonna displayed</technical_language>

Target:
public void test_state_dump() throws Exception { cacheManager.createCache("cache-2", newCacheConfigurationBuilder( String.class, String.class, newResourcePoolsBuilder() .heap(10, EntryUnit.ENTRIES) .offheap(1, MemoryUnit.MB) .with(clusteredDedicated("primary-server-resource", 2, MemoryUnit.MB))) .build()); Properties properties = new Properties(); properties.setProperty(ConnectionPropertyNames.CONNECTION_TIMEOUT, String.valueOf("5000")); properties.setProperty(ConnectionPropertyNames.CONNECTION_NAME, "diagnostic"); properties.setProperty(PROP_REQUEST_TIMEOUT, "5000"); properties.setProperty(PROP_REQUEST_TIMEOUTMESSAGE, "timed out"); URI uri = URI.create("diagnostic://" + CLUSTER.getConnectionURI().getAuthority()); Connection connection = ConnectionFactory.connect(uri, properties); EntityRef<Diagnostics, Object, Void> ref = connection.getEntityRef(Diagnostics.class, 1, "root"); Diagnostics diagnostics = ref.fetchEntity(null); String dump = diagnostics.getClusterState(); assertThat(dump, containsString("clientCount=")); assertThat(dump, containsString("clientDescriptor=")); assertThat(dump, containsString("clientIdentifier=")); assertThat(dump, containsString("attached=")); assertThat(dump, containsString("managerIdentifier=")); assertThat(dump, containsString("defaultServerResource=primary-server-resource")); assertThat(dump, containsString("serverResource=")); assertThat(dump, containsString("size=")); assertThat(dump, containsString("configured=true")); assertThat(dump, containsString("storeIdentifier=")); assertThat(dump, containsString("storedKeyType=")); assertThat(dump, containsString("storedValueType=")); assertThat(dump, containsString("keySerializerType=")); assertThat(dump, containsString("valueSerializerType=")); assertThat(dump, containsString("consistency=")); assertThat(dump, containsString("resourceName=")); }