@Test
public void testLoadingConfig() throws InvalidArgumentException, ResolutionException, ConfigurationProcessingException, ChainNotFoundException {

    when(chainStorage.resolve(mapId)).thenReturn(receiverChain);
    DSObject config = new DSObject("\n" +
            "     {\n" +
            "         \"endpoints\": [\n" +
            "             {\n" +
            "                 \"name\": \"enpointName\"," +
            "                 \"type\": \"http\",\n" +
            "                 \"port\": 8080,\n" +
            "                 \"startChain\": \"mainChain\",\n" +
            "                 \"maxContentLength\": 4098,\n" +
            "                 \"stackDepth\": 5\n" +
            "             }\n" +
            "         ]\n" +
            "     }");
    EndpointsSectionProcessingStrategy strategy = new EndpointsSectionProcessingStrategy();
    strategy.onLoadConfig(config);
}