title: AKKA.NET configuration in a unittest context
body: <p>I'm trying to configure my AKKA.NET runtime environment using a HOCON configuration block in a unittest context in .NET Core 1.0. Apparently the configuration is not picked up from the App.config file. </p>
  
  <p>Can anybody explain how the HOCON configuration is picked up by AKKA.NET when running in a unittest context (xunit)?</p>
  
  <p>Here are some more details if the above question does not give enough information: </p>
  
  <p>I'm trying to avoid the well-known warnings. </p>
  
  <pre><code>NewtonSoftJsonSerializer has been detected as a default serializer. It will be obsoleted in Akka.NET starting from version 1.5 in the favor of Wire 
  </code></pre>
  
  <p>I managed to get rid of this message from a Console application using AKKA.NET by the following section in App.config: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /&gt;
    &lt;/configSections&gt;
    &lt;akka&gt;
      &lt;hocon&gt;
      &lt;![CDATA[
          akka {
                  actor {
                      serializers {
                        wire = "Akka.Serialization.WireSerializer, Akka.Serialization.Wire"
                      }
                          serialization-bindings {
                          "System.Object" = wire
                          }
                      }
                  }
      ]]&gt;
      &lt;/hocon&gt;
    &lt;/akka&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When I do the same in my unittest project it does not have the same effect. </p>
  
  <p>I'm using xunit for unittesting. These are my dependencies: </p>
  
  <pre><code>"Akka": "1.1.1",
  "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
  "NSubstitute": "1.10.0",
  "xunit": "2.2.0-beta2-build3300",
  "dotnet-test-xunit": "2.2.0-preview2-build1029",
  "Akka.TestKit": "1.1.1",
  "Akka.TestKit.Xunit2": "1.1.1",
  "Akka.Serialization.Wire": "1.1.1.28-beta"
  </code></pre>