public Optional<SearchVersion> getVersion() {
        return nodeAdapter.version();
    }
@Test
    public void returnsEmptyOptionalIfAdapterReturnsNoVersion() {
        when(nodeAdapter.version()).thenReturn(Optional.empty());

        final Optional<SearchVersion> elasticsearchVersion = node.getVersion();

        assertThat(elasticsearchVersion).isEmpty();
    }