title: Java Bot SDK throws 401 error for proactive message
body: <p>I'm trying to implement a bot to send proactive messages. I made a proof of concept in NodeJS that works:</p>
  <pre><code>const { BotFrameworkAdapter } = require('botbuilder');
  
  const adapter = new BotFrameworkAdapter({
      appId: process.env.MicrosoftAppId,
      appPassword: process.env.MicrosoftAppPassword
  });
  
  adapter.onTurnError = async (error) =&gt; {
      console.error(error);
  };
  
  const cr = require('./test_cr.json');
  
  adapter.continueConversation(cr, async (turnContext) =&gt; {
    await turnContext.sendActivity('Node SDK proactive message')
  });
  </code></pre>
  <p>Yet when I try to recreate this example using the Java SDK, I get <code>com.microsoft.bot.connector.rest.ErrorResponseException: Status code 401, {&quot;message&quot;:&quot;Authorization has been denied for this request.&quot;}</code>.</p>
  <pre><code>String appId = System.getenv(&quot;MicrosoftAppId&quot;);
  String appPassword = System.getenv(&quot;MicrosoftAppPassword&quot;);
  
  BotFrameworkAdapter bot = new BotFrameworkAdapter(new SimpleCredentialProvider(appId, appPassword));
  ConversationReference cr = mapper.readValue(new File(&quot;test_cr.json&quot;), ConversationReference.class);
  CompletableFuture&lt;Void&gt; cf = bot.continueConversation(appId, cr, turnContext -&gt; turnContext.sendActivity(&quot;Java SDK proactive message&quot;).thenApply(resourceResponse -&gt; null));
  cf.get();
  </code></pre>
  <p>The conversation reference and app credentials should be the same for both examples. Am I not setting up the Java bot correctly? For reference, I'm using a pretty barebones conversation reference:</p>
  <pre><code>{
    &quot;channelId&quot;:&quot;msteams&quot;,
    &quot;serviceUrl&quot;:&quot;https://smba.trafficmanager.net/amer/&quot;,
    &quot;conversation&quot;:{
      &quot;isGroup&quot;:true,
      &quot;conversationType&quot;:&quot;channel&quot;,
      &quot;tenantId&quot;:&quot;xxxxxx&quot;,
      &quot;id&quot;:&quot;xxxxxx&quot;
    }
  }
  </code></pre>