@Test
public void testSplitPath() {

	String[][] samples = {
			// input path, expected path part outputs
			{"path/to/file", "path", "to", "file"},
			{"/path/to/file", "", "path", "to", "file"},
			{"path/to/file/", "path", "to", "file"},
			{"/path/to/file/", "", "path", "to", "file"},
			
			{"/", ""},
			{"//", "", ""},
			{"", ""},
	};
	for (String[] sample : samples) {
		List<String> expected = new ArrayList<String> ();
		for (int i = 1; i < sample.length; i++)
			expected.add(sample[i]);
		List<String> actual = Util.splitPath(sample[0]);
		if (expected.size() != 0 && actual.size() != 0)
			assertEquals(expected, actual);
	}
}