@Override
    public Map<String, String> getHeaders(ConnectorSession session)
    {
        if (isUseIdentityThriftHeader(session)) {
            return ImmutableMap.of(PRESTO_CONNECTOR_IDENTITY_USER, session.getUser());
        }
        return ImmutableMap.of();
    }
@Test
    public void testWithoutIdentityHeaders()
    {
        ThriftConnectorConfig config = new ThriftConnectorConfig().setUseIdentityThriftHeader(false);
        ThriftSessionProperties properties = new ThriftSessionProperties(config);
        TestingConnectorSession session = new TestingConnectorSession(properties.getSessionProperties());
        DefaultThriftHeaderProvider headerProvider = new DefaultThriftHeaderProvider();
        Map<String, String> headers = headerProvider.getHeaders(session);
        assertTrue(headers.isEmpty());
    }