@Test
public void testSplit() {

  final Object[][] testParameters =
      new Object[][] {{"/Pictures/hello.jpg", new String[] {"/Pictures", "hello", "jpg"}},
          {"/tester/Desktop/study/blockchain.pdf",
              new String[] {"/tester/Desktop/study", "blockchain", "pdf"}}};
  assertNull(FilepathUtils.split(null));
  for (final Object[] testParameter : testParameters) {
    String[] expected = (String[]) testParameter[1];
    String path = (String) testParameter[0];
    for (int i = 0; i < expected.length; ++i) {
      assertEquals(expected[i], FilepathUtils.split(path)[i]);
    }
  }
}