    @Test
    public void testResetOfAllConnections() {

        //given
        stubFor(delete(urlEqualTo(connectionsUrl + "?type=reset")).willReturn(aResponse().withBody("{\n"
            + "  \"closed_connections\": [{\n"
            + "    \"host\": \"127.0.0.1\",\n"
            + "    \"port\": 57518\n"
            + "  }, {\n"
            + "    \"host\": \"127.0.0.1\",\n"
            + "    \"port\": 57519\n"
            + "  }, {\n"
            + "    \"host\": \"127.0.0.3\",\n"
            + "    \"port\": 57520\n"
            + "  }],\n"
            + "  \"operation\": \"reset\"\n"
            + "}")));
        //when
        ClosedConnectionReport report = underTest.closeConnections(RESET);
        //then
        assertEquals(RESET, report.getCloseType());
        assertEquals(newArrayList(new InetSocketAddress("127.0.0.1", 57518), new InetSocketAddress("127.0.0.1", 57519),
            new InetSocketAddress("127.0.0.3", 57520)), report.getAddresses());
    }