public Optional<SearchVersion> getVersion() {
        return nodeAdapter.version();
    }
@Ignore("TODO: fix this test or remove?")
    @Test
    public void retrievingVersionFailsIfElasticsearchVersionIsInvalid() throws Exception {
        //when(nodeAdapter.version()).thenReturn(Optional.of("Foobar"));

        assertThatThrownBy(() -> node.getVersion())
                .isInstanceOf(ElasticsearchException.class)
                .hasMessageStartingWith("Unable to parse Elasticsearch version: Foobar")
                .hasCauseInstanceOf(ParseException.class);
    }