@Test
public void testSplitIntoMap() throws Exception {

    String[] configurations = new String[] { "data.json=example/components/page|per:Template","infinity.json=per:Object","html=per:Page|per:Template","*~raw=nt:file" };
    Map<String, List<String>> answer = PerUtil.splitIntoMap(configurations, "=", "\\|");
    Map<String, List<String>> expected = new HashMap<>();
    expected.put("data.json", Arrays.asList("example/components/page", "per:Template"));
    expected.put("infinity.json", Arrays.asList("per:Object"));
    expected.put("html", Arrays.asList("per:Page", "per:Template"));
    expected.put("*~raw", Arrays.asList("nt:file"));
    assertNotNull("Returned Map was null", answer);
    assertFalse("Returned Map was empty", answer.isEmpty());
    assertEquals("Map did not map", expected, answer);
}