public void updateConnection(Connection connection) {
        if (connection != null) {
            connectionRepository.saveAndFlush(connection);

            cacheService.evictRelatedCacheValues("metadata-response", connection.getEntityId());
            cacheService.evictSingleCacheValue("metadata", connection.getEntityId());
        }
    }
@Test
    void updateConnection() {
        connectionServiceMock.updateConnection(new Connection());

        verify(connectionRepositoryMock, times(1)).saveAndFlush(any(Connection.class));
    }