@Test
public void testJoinPath() {

	String[][] samples = {
			// expected path output, parts to join
			{"", "", ""},
			{"path", "path", ""},
			{"path", "", "path"},
			{"path/to/file", "path", "to", "file"},
			{"path/to/file", "path/", "to", "file/"},
	};
	for (String[] sample : samples) {
		String expected = sample[0];
		String[] moreParts = Arrays.copyOfRange(sample, 3, sample.length);
		String actual = Util.joinPath(sample[1], sample[2], moreParts);
		assertEquals(expected, actual);
	}
}