@Test
public void testAppendWithStartAndEnd() {

  final Object[][] testParameters = new Object[][] {{new String[] {"/Users"}, 0, 0, "/Users"},
      {new String[] {"/Users", "/tester"}, 0, 1, "/Users/tester"},
      {new String[] {"/Users", "/admin", "/systems"}, 0, 2, "/Users/admin/systems"},
      {new String[] {"/Users", "/admin", "/systems"}, 1, 2, "/admin/systems"},
      {new String[] {"/Users", "/admin", "/systems"}, 2, 2, "/systems"}};
  assertEquals("", FilepathUtils.append(null, null, null));
  for (final Object[] testParameter : testParameters) {
    String expected = (String) testParameter[3];
    String[] fragments = (String[]) testParameter[0];
    int start = (Integer) testParameter[1];
    int end = (Integer) testParameter[2];
    assertEquals(expected, FilepathUtils.append(fragments, start, end));
  }
}