@VisibleForTesting
    @SuppressWarnings("WeakerAccess")
    LookupResult parseResponse(@Nullable ResponseBody body) {
        if (body != null) {
            try {
                final JsonNode json = OBJECT_MAPPER.readTree(body.string());

                return LookupResult.withoutTTL()
                        .single(json.path("pulse_info").path("count").asLong(0))
                        .multiValue(OBJECT_MAPPER.convertValue(json, MAP_TYPE_REFERENCE))
                        .build();
            } catch (IOException e) {
                LOG.warn("Couldn't parse OTX response as JSON", e);
            }
        }

        return LookupResult.empty();
    }
@Test
    public void parseResponse() throws Exception {
        final URL url = Resources.getResource(getClass(), "otx-IPv4-response.json");
        final ResponseBody body = ResponseBody.create(null, Resources.toByteArray(url));
        final LookupResult result = otxDataAdapter.parseResponse(body);

        assertThat(result.singleValue()).isEqualTo(0L);
        assertThat(result.multiValue()).isNotNull();
        assertThat(requireNonNull(result.multiValue()).get("country_name")).isEqualTo("Ireland");
    }