@Test
    void ipV4AddrKeyGeneration() throws Exception {
        final String expectedKey = "127.0.0.1|8080";
        assertThat(SessionProtocolNegotiationCache.key(
                Endpoint.of("127.0.0.1", 8080), SessionProtocol.H1C))
                .isEqualTo(expectedKey);
        assertThat(SessionProtocolNegotiationCache.key(
                new InetSocketAddress("127.0.0.1", 8080)))
                .isEqualTo(expectedKey);
    }
Makes sure the cache keys created via different paths are the same.
core/src/test/java/com/linecorp/armeria/client/SessionProtocolNegotiationCacheTest.java