@Test
public void testConcat() {

  final Object[][] testParameters = new Object[][] {{new String[] {"/Users"}, "/Users"},
      {new String[] {"/Users", "/tester"}, "/Users/tester"},
      {new String[] {"/Users", "/admin", "/systems"}, "/Users/admin/systems"},
      {new String[] {"/Users", "/admin", "/systems", "/subsystem"},
          "/Users/admin/systems/subsystem"}};
  try {
    FilepathUtils.concat((String[]) null);
  } catch (Exception e) {
    assertSame(NullPointerException.class, e.getClass());
  }
  for (Object[] testParameter : testParameters) {
    String expected = (String) testParameter[1];
    String[] fragments = (String[]) testParameter[0];
    assertEquals(expected, FilepathUtils.concat(fragments));
  }
}