/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */
package org.apache.logging.log4j.core;

import java.net.NetworkInterface;
import java.net.SocketException;
import java.nio.charset.Charset;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;

/**
 * Work in progress.
 */
public class CollectionLoggingTest {

    @Test
    public void testSystemProperties() {
        Logger logger = LogManager.getLogger(CollectionLoggingTest.class.getName());
        logger.error(System.getProperties());
    }

    @Test
    public void testNetworkInterfaces() throws SocketException {
        Logger logger = LogManager.getLogger(CollectionLoggingTest.class.getName());
        logger.error(NetworkInterface.getNetworkInterfaces());
    }

    @Test
    public void testAvailableCharsets() throws SocketException {
        Logger logger = LogManager.getLogger(CollectionLoggingTest.class.getName());
        logger.error(Charset.availableCharsets());
    }

}

@@ -933,16 +933,64 @@
 Charset;
+%0Aimport java.util.HashMap;%0Aimport java.util.Map;
 %0A%0Aimport
@@ -1063,24 +1063,76 @@
 g4j.Logger;%0A
+import org.apache.logging.log4j.message.MapMessage;%0A
 import org.j
@@ -1338,32 +1338,32 @@
 ass.getName());%0A
-
         logger.e
@@ -1388,24 +1388,484 @@
 perties());%0A
+        // logger.error(new MapMessage(System.getProperties()));%0A    %7D%0A%0A    @Test%0A    public void testSimpleMap() %7B%0A        Logger logger = LogManager.getLogger(CollectionLoggingTest.class.getName());%0A        logger.error(System.getProperties());%0A        Map%3CString, String%3E map = new HashMap%3CString, String%3E();%0A        map.put(%22MyKey1%22, %22MyValue1%22);%0A        map.put(%22MyKey2%22, %22MyValue2%22);%0A        logger.error(new MapMessage(map));%0A        logger.error(map);%0A
     %7D%0A%0A    @

Work in progress.