@Override
    public void destroy() {
        if (this.connection != null) {
            try {
                this.connection.close();
            } catch (Exception e) {
                log.error("Failed to close connection during destroy()", e);
            }
        }
    }
@Test
    public void givenConnectionIsNull_whenDestroy_thenVerifyNoInteractions() {
        node.destroy();
        then(connectionMock).shouldHaveNoInteractions();
    }