@Test
public void testReadDictionary_dotConfigWithComment() throws Exception {

    final Map<String, Object> expectConfig = new HashMap<>();
    expectConfig.put("foo", "bar");
    expectConfig.put("foos", Stream.of("bar", "bar", "bar").toArray(String[]::new));
    expectConfig.put("ones", Stream.of(1L, 1L, 1L).toArray(Long[]::new));
    expectConfig.put("nothing", new String[0]);
    final String dotConfig = "foo=\"bar\"\n" +
            "foos=[\"bar\",\"bar\",\"bar\"]\n" +
            "ones=L[\"1\",\"1\",\"1\"]\n" +
            "nothing=[]";
    final String dotConfigWithComment = "# some comment\n" + dotConfig;
    final Map<String, Object> simpleConfig = DefaultSlingSimulator.readDictionary(
            new ByteArrayInputStream(dotConfigWithComment.getBytes(StandardCharsets.UTF_8)), "simple.config");
    checkExpectedProperties(expectConfig, simpleConfig);
}