@Test
public void testReadDictionary_dotProperties() throws Exception {

    final Map<String, Object> expectProperties = new HashMap<>();
    expectProperties.put("foo", "bar");
    expectProperties.put("foos", "bar,bar,bar");
    expectProperties.put("ones", "1,1,1");
    expectProperties.put("nothing", "");
    final String dotProperties = "foo=bar\nfoos=bar,bar,bar\nones=1,1,1\nnothing=";
    final Map<String, Object> simpleProperties = DefaultSlingSimulator.readDictionary(
            new ByteArrayInputStream(dotProperties.getBytes(StandardCharsets.UTF_8)), "simple.properties");
    checkExpectedProperties(expectProperties, simpleProperties);
}