@Override
    public List<Node> sniff(List<Node> nodes) {
        if (attribute == null || value == null) {
            return nodes;
        }

        return nodes.stream()
                .filter(node -> nodeMatchesFilter(node, attribute, value))
                .collect(Collectors.toList());
    }
@Test
    void doesNotFilterNodesIfNoFilterIsSet() throws Exception {
        final List<Node> nodes = mockNodes();

        final NodesSniffer nodesSniffer = new FilteredOpenSearchNodesSniffer(null, null);

        assertThat(nodesSniffer.sniff(nodes)).isEqualTo(nodes);
    }